From 4d13f8a9aff985205058edc125218df890df5bd8 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 18 Dec 2015 17:32:17 +0100 Subject: [PATCH] IcingaConfig: store file statistics --- library/Director/IcingaConfig/IcingaConfig.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/Director/IcingaConfig/IcingaConfig.php b/library/Director/IcingaConfig/IcingaConfig.php index 3e35dc34..c8168346 100644 --- a/library/Director/IcingaConfig/IcingaConfig.php +++ b/library/Director/IcingaConfig/IcingaConfig.php @@ -237,8 +237,10 @@ class IcingaConfig $this->db->insert( $fileTable, array( - $fileKey => $this->dbBin($checksum), - 'content' => $file->getContent() + $fileKey => $this->dbBin($checksum), + 'content' => $file->getContent(), + 'cnt_object' => $file->getObjectCount(), + 'cnt_template' => $file->getTemplateCount() ) ); }