From 479200df9e9868f7f9cdf5dd4da25f5fc1eaf669 Mon Sep 17 00:00:00 2001 From: Vladislav Ostapov Date: Thu, 9 Jan 2025 12:49:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=20=D0=B0=D0=BF=D1=82=D0=B0?= =?UTF-8?q?=D0=B9=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/main-scpc.html | 5 ++--- static/main-tdma.html | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/static/main-scpc.html b/static/main-scpc.html index c28e803..003854c 100644 --- a/static/main-scpc.html +++ b/static/main-scpc.html @@ -1047,9 +1047,8 @@ let mins = uptime % 60; uptime = Math.floor(uptime / 60) let hours = uptime % 24 uptime = Math.floor( uptime / 24) - let res = `${mins}m ${secs}s` - if (hours > 0) { res = `${hours}h ` + res } - if (uptime > 0) { res = `${uptime}d ` + res } + let res = `${hours}:${mins}:${secs}` + if (uptime > 0) { res = `${uptime} days, ` + res } this.stat_os.uptime = res } else { this.stat_os.uptime = '?' diff --git a/static/main-tdma.html b/static/main-tdma.html index eb81ef2..031aab7 100644 --- a/static/main-tdma.html +++ b/static/main-tdma.html @@ -785,9 +785,8 @@ let mins = uptime % 60; uptime = Math.floor(uptime / 60) let hours = uptime % 24 uptime = Math.floor( uptime / 24) - let res = `${mins}m ${secs}s` - if (hours > 0) { res = `${hours}h ` + res } - if (uptime > 0) { res = `${uptime}d ` + res } + let res = `${hours}:${mins}:${secs}` + if (uptime > 0) { res = `${uptime} days, ` + res } this.stat_os.uptime = res } else { this.stat_os.uptime = '?'