improve stats generation
This commit is contained in:
parent
0c9ad5bfd6
commit
a8177a1583
5 changed files with 61 additions and 20 deletions
|
|
@ -43,12 +43,14 @@ func writeStats(stats *Stats) {
|
|||
"started_at": stats.StartedAt.Format(time.RFC3339),
|
||||
"finished_at": finishedAt.Format(time.RFC3339),
|
||||
"duration_seconds": int(duration.Seconds()),
|
||||
"total_hosts": stats.TotalHosts,
|
||||
"hosts_with_icon": stats.HostsWithIcon,
|
||||
"hosts_no_icon": stats.HostsNoIcon,
|
||||
"convert_errors": stats.ConvertErrors.Load(),
|
||||
"bundles_created": stats.BundlesCreated,
|
||||
"total_bytes": stats.TotalBytes,
|
||||
"total_hosts": stats.TotalHosts,
|
||||
"hosts_with_icon": stats.HostsWithIcon,
|
||||
"hosts_no_icon": stats.HostsNoIcon,
|
||||
"bundled_with_icon": stats.BundledWithIcon.Load(),
|
||||
"bundled_no_icon": stats.BundledNoIcon.Load(),
|
||||
"convert_errors": stats.ConvertErrors.Load(),
|
||||
"bundles_created": stats.BundlesCreated,
|
||||
"total_bytes": stats.TotalBytes,
|
||||
}
|
||||
|
||||
os.MkdirAll("stats", 0755)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue