From: hickert Date: Mon, 2 Aug 2010 10:07:43 +0000 (+0000) Subject: Ensure we either call the plugins constructor or manually set the initTime variable... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aa739fc86e6558cae85c450e83ce81185fe6e449;p=gosa.git Ensure we either call the plugins constructor or manually set the initTime variable for the new statistics plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19317 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc b/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc index ec8241299..dfa7fe1f6 100644 --- a/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc +++ b/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc @@ -18,10 +18,15 @@ class opsiProperties extends plugin */ public function __construct($config,$product,$cfg = array() ,$hostId = "") { + $this->initTime = microtime(TRUE); $this->config = $config; $this->product = $product; $this->cfg = $cfg; $this->hostId = $hostId; + + // Create statistic table entry + stats::log('plugin', $class = get_class($this), $category = array($this->acl_category), $action = 'open', + $amount = 1, $duration = (microtime(TRUE) - $this->initTime)); }