2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-12-27 00:02:19 +08:00

Fix history command

This commit is contained in:
Ken Hibino 2020-07-28 22:00:54 -07:00
parent 5f06c308f0
commit e8fdbc5a72

View File

@ -63,7 +63,7 @@ func printDailyStats(stats []*asynq.DailyStats) {
} else { } else {
errrate = fmt.Sprintf("%.2f%%", float64(s.Failed)/float64(s.Processed)*100) errrate = fmt.Sprintf("%.2f%%", float64(s.Failed)/float64(s.Processed)*100)
} }
fmt.Fprintf(tw, format, s.Time.Format("2006-01-02"), s.Processed, s.Failed, errrate) fmt.Fprintf(tw, format, s.Date.Format("2006-01-02"), s.Processed, s.Failed, errrate)
} }
tw.Flush() tw.Flush()
} }