mirror of
https://github.com/skidoodle/ncore-stats.git
synced 2025-02-15 05:09:14 +01:00
if
This commit is contained in:
parent
56d41d7d3d
commit
51da89ff19
1 changed files with 7 additions and 1 deletions
|
@ -188,7 +188,13 @@
|
|||
}
|
||||
|
||||
function parseSpeedValue(value) {
|
||||
return parseFloat(value).toFixed(2)
|
||||
if (value.includes('KiB')) {
|
||||
return (parseFloat(value) / 1024).toFixed(2)
|
||||
} else if (value.includes('MiB')) {
|
||||
return parseFloat(value).toFixed(2)
|
||||
} else {
|
||||
return parseFloat(value).toFixed(2)
|
||||
}
|
||||
}
|
||||
|
||||
function showHistory(owner, event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue