mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
feat: 2 digits fractions for percentage in stats
This commit is contained in:
parent
81cf940160
commit
da112ce485
@ -2924,7 +2924,7 @@ page.getStatistics = (params = {}) => {
|
||||
parsed = page.getPrettyBytes(value)
|
||||
break
|
||||
case 'byteUsage':
|
||||
parsed = `${page.getPrettyBytes(value.used)} / ${page.getPrettyBytes(value.total)} (${Math.floor(value.used / value.total * 100)}%)`
|
||||
parsed = `${page.getPrettyBytes(value.used)} / ${page.getPrettyBytes(value.total)} (${(value.used / value.total * 100).toFixed(2)}%)`
|
||||
break
|
||||
case 'uptime':
|
||||
parsed = page.getPrettyUptime(value)
|
||||
|
Loading…
Reference in New Issue
Block a user