Browse Source

Fix last seen edge case

dev
Hamish Coleman 1 year ago
parent
commit
c552db6443
  1. 4
      scripts/n2n-ctl

4
scripts/n2n-ctl

@ -174,6 +174,10 @@ def str_table(rows, columns, orderby):
def num2timestr(seconds):
"""Convert a number of seconds into a human time"""
if seconds == 0:
return "now"
days, seconds = divmod(seconds, (60*60*24))
hours, seconds = divmod(seconds, (60*60))
minutes, seconds = divmod(seconds, 60)

Loading…
Cancel
Save