From 0b27babb312f1696fedb92d0f2a9fc6dbdd4a015 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Sat, 22 Aug 2020 01:39:04 +0700 Subject: [PATCH] Refactored "hhmmss" -> "uptime" --- controllers/utilsController.js | 2 +- src/js/dashboard.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/utilsController.js b/controllers/utilsController.js index e56276d..9e06956 100644 --- a/controllers/utilsController.js +++ b/controllers/utilsController.js @@ -618,7 +618,7 @@ self.stats = async (req, res, next) => { _types: { byte: ['memoryUsage'], byteUsage: ['systemMemory'], - hhmmss: ['systemUptime', 'nodeUptime'] + uptime: ['systemUptime', 'nodeUptime'] }, platform: `${os.platform} ${os.arch}`, distro: `${os.distro} ${os.release}`, diff --git a/src/js/dashboard.js b/src/js/dashboard.js index 20e679f..2cb53bc 100644 --- a/src/js/dashboard.js +++ b/src/js/dashboard.js @@ -2861,7 +2861,7 @@ page.getStatistics = (params = {}) => { parsed = page.getPrettyBytes(value) if ((types.byteUsage || []).includes(valKeys[j])) parsed = `${page.getPrettyBytes(value.used)} / ${page.getPrettyBytes(value.total)} (${Math.round(value.used / value.total * 100)}%)` - if ((types.hhmmss || []).includes(valKeys[j])) + if ((types.uptime || []).includes(valKeys[j])) parsed = page.getPrettyUptime(value) const string = valKeys[j]