mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Use 2 decimal places for bps numbers (#16451)
This commit is contained in:
@@ -294,7 +294,7 @@ class CustomMapDataController extends Controller
|
|||||||
|
|
||||||
private function rateString(int $rate): string
|
private function rateString(int $rate): string
|
||||||
{
|
{
|
||||||
return Number::formatSi($rate, 0, 0, 'bps');
|
return Number::formatSi($rate, 2, 3, 'bps');
|
||||||
}
|
}
|
||||||
|
|
||||||
private function snmpSpeed(string $speeds): int
|
private function snmpSpeed(string $speeds): int
|
||||||
|
Reference in New Issue
Block a user