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