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:
Johannes Meyer 2019-07-02 15:38:52 +02:00 committed by GitHub
commit 559d57d466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;