From 194981fe69f1239a47be6f2e42f1690210aeac06 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:07:48 +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@19319 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../opsi/admin/opsiLicenses/class_licenseByProduct.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseByProduct.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseByProduct.inc index 463939cc7..830da1902 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseByProduct.inc +++ b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseByProduct.inc @@ -31,6 +31,7 @@ class licenseByProduct 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); @@ -56,6 +57,10 @@ class licenseByProduct 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