From cae8cea482c76d3f91a8b2bcbfe3eebbd600ccd0 Mon Sep 17 00:00:00 2001 From: Niko Martini Date: Tue, 25 Jun 2019 16:00:13 +0200 Subject: [PATCH] Support higher number of problems in the tactical overview refs #3746 --- library/Icinga/Chart/Donut.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Chart/Donut.php b/library/Icinga/Chart/Donut.php index 8e6c58920..d509a3356 100644 --- a/library/Icinga/Chart/Donut.php +++ b/library/Icinga/Chart/Donut.php @@ -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;