mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
legacy: Improve interval rendering
This commit is contained in:
parent
67222ef437
commit
926bc2b0c6
@ -102,10 +102,9 @@ class IcingaLegacyConfigHelper
|
|||||||
|
|
||||||
public static function renderInterval($interval)
|
public static function renderInterval($interval)
|
||||||
{
|
{
|
||||||
if ($interval % 60 === 0) {
|
if ($interval < 60) {
|
||||||
return $interval / 60;
|
$interval = 60;
|
||||||
} else {
|
|
||||||
return sprintf('%.2F', $interval);
|
|
||||||
}
|
}
|
||||||
|
return $interval / 60;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user