IcingaConfig: do not benchmark no objects of type
This commit is contained in:
parent
8b6866ecc8
commit
ac640fd113
|
@ -420,6 +420,10 @@ class IcingaConfig
|
|||
|
||||
protected function createFileForObjects($type, $objects)
|
||||
{
|
||||
if (empty($objects)) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
Benchmark::measure(sprintf('Generating %ss: %s', $type, count($objects)));
|
||||
foreach ($objects as $object) {
|
||||
if ($object->isExternal()) {
|
||||
|
|
Loading…
Reference in New Issue