From f738802cea8f06dc745328cd50b0c868bb31679b Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:08:21 +0000 Subject: [PATCH] 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@19331 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc b/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc index 081104d90..7af07d6ec 100644 --- a/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc +++ b/gosa-plugins/gofax/gofax/faxreports/class_faxreport.inc @@ -43,6 +43,8 @@ class faxreport extends plugin /* Create class */ function faxreport (&$config, &$ui) { + $this->initTime = microtime(TRUE); + /* Include config object */ $this->config = $config; $this->ui = &$ui; @@ -73,6 +75,11 @@ class faxreport extends plugin foreach($tmp as $attrs){ $this->uidToDN[$attrs['uid'][0]] = $attrs['dn']; } + + // 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)); + } -- 2.30.2