IcingaConfigFile: count apply objects...

...still no statistics persistence to db
This commit is contained in:
Thomas Gelf 2016-05-25 11:53:25 +02:00
parent c205d9f80d
commit c3889ee5d8
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,8 @@ class IcingaConfigFile
protected $cntTemplate = 0;
protected $cntApply = 0;
public function prepend($content)
{
$this->content = $content . $this->content;
@ -103,6 +105,9 @@ class IcingaConfigFile
case 'template':
$this->cntTemplate++;
break;
case 'apply':
$this->cntApply++;
break;
}
}