Skip to content

Commit

Permalink
report: add epochs (started_at - stopped_at)
Browse files Browse the repository at this point in the history
  • Loading branch information
maiha committed Aug 29, 2016
1 parent 343009f commit 886b7d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/periodical.cr
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ module Periodical

def summarize
String.build do |io|
hms = @started_at.to_s("%H:%M:%S")
io << "%s (OK:%s, KO:%s) [%s +%s]" % [qps, ok, ko, hms, spent_hms]
hms = @started_at.to_s("%H:%M:%S")
t1 = @started_at.epoch
t2 = stopped_at.epoch
io << "%s (OK:%s, KO:%s) [%s +%s](%d - %d)" % [qps, ok, ko, hms, spent_hms, t1, t2]
io << " # #{errors.first}" if errors.any?
end
end
Expand Down

0 comments on commit 886b7d9

Please sign in to comment.