legacy: Improve interval rendering

This commit is contained in:
Markus Frosch 2018-09-20 15:58:39 +02:00
parent 67222ef437
commit 926bc2b0c6
1 changed files with 3 additions and 4 deletions

View File

@ -102,10 +102,9 @@ class IcingaLegacyConfigHelper
public static function renderInterval($interval)
{
if ($interval % 60 === 0) {
return $interval / 60;
} else {
return sprintf('%.2F', $interval);
if ($interval < 60) {
$interval = 60;
}
return $interval / 60;
}
}