mirror of
https://github.com/skidoodle/ncore-stats.git
synced 2026-04-28 15:57:37 +02:00
if
This commit is contained in:
+7
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user