mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
Refactored "hhmmss" -> "uptime"
This commit is contained in:
parent
6fb234984a
commit
0b27babb31
@ -618,7 +618,7 @@ self.stats = async (req, res, next) => {
|
|||||||
_types: {
|
_types: {
|
||||||
byte: ['memoryUsage'],
|
byte: ['memoryUsage'],
|
||||||
byteUsage: ['systemMemory'],
|
byteUsage: ['systemMemory'],
|
||||||
hhmmss: ['systemUptime', 'nodeUptime']
|
uptime: ['systemUptime', 'nodeUptime']
|
||||||
},
|
},
|
||||||
platform: `${os.platform} ${os.arch}`,
|
platform: `${os.platform} ${os.arch}`,
|
||||||
distro: `${os.distro} ${os.release}`,
|
distro: `${os.distro} ${os.release}`,
|
||||||
|
@ -2861,7 +2861,7 @@ page.getStatistics = (params = {}) => {
|
|||||||
parsed = page.getPrettyBytes(value)
|
parsed = page.getPrettyBytes(value)
|
||||||
if ((types.byteUsage || []).includes(valKeys[j]))
|
if ((types.byteUsage || []).includes(valKeys[j]))
|
||||||
parsed = `${page.getPrettyBytes(value.used)} / ${page.getPrettyBytes(value.total)} (${Math.round(value.used / value.total * 100)}%)`
|
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)
|
parsed = page.getPrettyUptime(value)
|
||||||
|
|
||||||
const string = valKeys[j]
|
const string = valKeys[j]
|
||||||
|
Loading…
Reference in New Issue
Block a user