1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-09-28 19:27:08 +02: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)
{//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") {
return $this->GBpstoMBps($value);
} elseif ($type == "KB/s") {
return ($value / 1000);
} else {
return $value;
}