IcingaConfig: slightly change benchmarks messages
This commit is contained in:
parent
cf534b6aa4
commit
00b5e7c3f1
|
@ -452,7 +452,7 @@ class IcingaConfig
|
||||||
|
|
||||||
protected function createFileForObjects($type, $objects)
|
protected function createFileForObjects($type, $objects)
|
||||||
{
|
{
|
||||||
Benchmark::measure(sprintf('Generating %d %s', count($objects), $type));
|
Benchmark::measure(sprintf('Generating %ss: %s', $type, count($objects)));
|
||||||
if (empty($objects)) {
|
if (empty($objects)) {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -516,7 +516,7 @@ class IcingaConfig
|
||||||
if ($file && $type === 'command') {
|
if ($file && $type === 'command') {
|
||||||
$file->prepend("library \"methods\"\n\n");
|
$file->prepend("library \"methods\"\n\n");
|
||||||
}
|
}
|
||||||
|
Benchmark::measure(sprintf('%ss done', $type, count($objects)));
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue