From 59b79f692e6fc34e8909922e115ba5c922a3c751 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:07:59 +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@19323 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsage.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsage.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsage.inc index 06e00d450..faf367eb8 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsage.inc +++ b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsage.inc @@ -31,6 +31,7 @@ class licenseUsage 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); @@ -54,6 +55,11 @@ class licenseUsage extends plugin $this->usageList->setHeight("300px"); $this->usageList->setHeader(array(_("Host"),_("Key"),_("Pool"), _("License"))); $this->usageList->setDefaultSortColumn(1); + + // 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