Skip to content

Commit

Permalink
clean up output if no work done
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpus committed Mar 10, 2022
1 parent b5340b5 commit ed8a841
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eht_met_forecast/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ def main(args=None):
stats['elapsed_wait_s'] = elapsed
else:
stats['elapsed_s'] = elapsed
dump_stats(stats, log=args.log)
dump_latency_histograms(log=args.log)
if elapsed > 0:
dump_stats(stats, log=args.log)
dump_latency_histograms(log=args.log)

if exit_value:
exit(exit_value)

0 comments on commit ed8a841

Please sign in to comment.