Fixed uptime rollover in UI

This commit is contained in:
Gunnar Skjold
2020-03-08 19:47:47 +01:00
parent 9b70802450
commit c07c2e66d6
5 changed files with 25 additions and 4 deletions

View File

@@ -241,7 +241,7 @@ var fetch = function() {
}
if(window.moment) {
$('#currentMillis').html(moment.duration(parseInt(json.currentMillis)).humanize());
$('#currentMillis').html(moment.duration(parseInt(json.uptime_seconds), 'seconds').humanize());
$('#currentMillis').closest('.row').show();
}