1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00

Added KB/s to MB/s conversion

This commit is contained in:
cp6 2021-01-30 10:04:13 +11:00
parent e876d93005
commit 69d6922ff3

View File

@ -523,9 +523,11 @@ class helperFunctions extends elementHelpers
} }
protected function diskSpeedAsMbps(string $type, string $value) protected function diskSpeedAsMbps(string $type, string $value)
{//If value type GB/s convert to MB/s {//If value type GB/s convert to MB/s, KB/s to MB/s
if ($type == "GB/s") { if ($type == "GB/s") {
return $this->GBpstoMBps($value); return $this->GBpstoMBps($value);
} elseif ($type == "KB/s") {
return ($value / 1000);
} else { } else {
return $value; return $value;
} }