Merge pull request #3834 from Icinga/fix/tactical-overview-big-numbers
Support higher number of problems in the tactical overview
This commit is contained in:
commit
559d57d466
|
@ -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…
Reference in New Issue