From: hickert Date: Mon, 2 Aug 2010 10:07:56 +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=d9e06cf86cc63343b879877b47aa79b52538e3bf;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@19322 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsageByHost.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsageByHost.inc index 96b1f0ae9..471715c7d 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsageByHost.inc +++ b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsageByHost.inc @@ -33,6 +33,7 @@ class licenseUsageByHost extends plugin function __construct(&$config,$dn) { + $this->initTime = microtime(TRUE); $this->config = $config; $this->dn = $this->orig_dn = $dn; $this->si = new opsiLicenceHandler($this->config); @@ -68,6 +69,10 @@ class licenseUsageByHost extends plugin $this->usedList->setHeader(array(_("Key"),_("Pool"),_("License ID"))); $this->usedList->setDefaultSortColumn(1); $this->usedList->setAcl('rwcdm'); // All ACLs, we filter on our own here. + + // 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)); }