Skip to content

Commit

Permalink
Err, we don't need it to tell us precisely how many nanoseconds ago i…
Browse files Browse the repository at this point in the history
…t was permitted
  • Loading branch information
Rosuav committed Dec 5, 2024
1 parent d90632c commit 79d12b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpstatic/chan_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function format_time(ts) {
}

function format_timedelta(sec) {
let desc = sec + " seconds ago";
let desc = Math.floor(sec) + " seconds ago";
if (sec > 86400 * 2) desc = Math.floor(sec / 86400) + " days ago";
else if (sec > 86400) desc = "yesterday";
else if (sec > 7200) desc = Math.floor(sec / 3600) + " hours ago";
Expand Down

0 comments on commit 79d12b1

Please sign in to comment.