From 00b5e7c3f1bcab2062805151ade711b36cd5375a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 20 Mar 2016 01:36:44 +0100 Subject: [PATCH] IcingaConfig: slightly change benchmarks messages --- library/Director/IcingaConfig/IcingaConfig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Director/IcingaConfig/IcingaConfig.php b/library/Director/IcingaConfig/IcingaConfig.php index 053443c0..f4c126b7 100644 --- a/library/Director/IcingaConfig/IcingaConfig.php +++ b/library/Director/IcingaConfig/IcingaConfig.php @@ -452,7 +452,7 @@ class IcingaConfig 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)) { return $this; } @@ -516,7 +516,7 @@ class IcingaConfig if ($file && $type === 'command') { $file->prepend("library \"methods\"\n\n"); } - + Benchmark::measure(sprintf('%ss done', $type, count($objects))); return $this; }