Skip to content

Commit

Permalink
simplify calculation of write duration
Browse files Browse the repository at this point in the history
  • Loading branch information
mriehl committed May 15, 2014
1 parent 226cf17 commit 44de450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/python/yadtbroadcastserver/__init__.py
Expand Up @@ -63,8 +63,8 @@ def schedule_write_metrics(cls, delay=30, first_call=False):
if not first_call:
start = time()
cls.write_metrics_to_file()
end = time()
log.msg("Wrote metrics to file in {0} seconds".format(end - start))
write_duration = time() - start
log.msg("Wrote metrics to file in {0} seconds".format(write_duration))

@classmethod
def reset_metrics_at_midnight(cls, first_call=False):
Expand Down

0 comments on commit 44de450

Please sign in to comment.