mirror of
https://github.com/skidoodle/ncore-stats.git
synced 2025-02-15 05:09:14 +01:00
if
This commit is contained in:
@@ -188,7 +188,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function parseSpeedValue(value) {
|
function parseSpeedValue(value) {
|
||||||
|
if (value.includes('KiB')) {
|
||||||
|
return (parseFloat(value) / 1024).toFixed(2)
|
||||||
|
} else if (value.includes('MiB')) {
|
||||||
return parseFloat(value).toFixed(2)
|
return parseFloat(value).toFixed(2)
|
||||||
|
} else {
|
||||||
|
return parseFloat(value).toFixed(2)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function showHistory(owner, event) {
|
function showHistory(owner, event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user