IcingaConfig: slightly change benchmarks messages

This commit is contained in:
Thomas Gelf 2016-03-20 01:36:44 +01:00
parent cf534b6aa4
commit 00b5e7c3f1
1 changed files with 2 additions and 2 deletions

View File

@ -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;
} }