From: hickert Date: Mon, 2 Aug 2010 10:07:51 +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=a980cd799862fa226c0f823b487204234ea3799a;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@19320 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc index b2c8edefb..7d815d40f 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc +++ b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc @@ -55,7 +55,7 @@ class licenseGeneric extends plugin function __construct(&$config, $dn, $license, $hosts = array()) { - + $this->initTime = microtime(TRUE); $this->config = $config; $this->data = $license; $this->dn = $dn; @@ -72,6 +72,10 @@ class licenseGeneric extends plugin // Extract pool name out of the fake dn. $this->init(); + + // 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)); }