mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +02:00
parent
d1d7526ad2
commit
cae8cea482
@ -366,7 +366,7 @@ class Donut
|
|||||||
protected function shortenLabel($label)
|
protected function shortenLabel($label)
|
||||||
{
|
{
|
||||||
if (is_numeric($label) && strlen($label) > 3) {
|
if (is_numeric($label) && strlen($label) > 3) {
|
||||||
return '~' . substr(round($label, -3), 0, 1) . 'k';
|
return round($label, -3)/1000 . 'k';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $label;
|
return $label;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user