legacy: Improve interval rendering
This commit is contained in:
parent
67222ef437
commit
926bc2b0c6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue