IcingaConfigFile: count apply objects...
...still no statistics persistence to db
This commit is contained in:
parent
c205d9f80d
commit
c3889ee5d8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue