Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
justanhduc committed Apr 27, 2022
1 parent 9d88105 commit ee9be98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neural_monitor/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ def standardize_image(img):


def _convert_time_human_readable(t):
if t < 3600:
if t < 60:
time_unit = 's'
elif 60 <= t < 3600:
time_unit = 'mins'
t /= 60.
elif 86400 > t >= 3600:
Expand Down

0 comments on commit ee9be98

Please sign in to comment.