From ce27b1c5067fdb1017a0955a8dde365384be20c1 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:07:53 +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@19321 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../opsi/admin/opsiLicenses/class_licensePoolGeneric.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_licensePoolGeneric.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_licensePoolGeneric.inc index b394b5dfd..dddcd36f8 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/class_licensePoolGeneric.inc +++ b/gosa-plugins/opsi/admin/opsiLicenses/class_licensePoolGeneric.inc @@ -62,6 +62,7 @@ class licensePoolGeneric extends plugin function __construct(&$config,$dn) { + $this->initTime = microtime(TRUE); $this->config = $config; $this->dn = $this->orig_dn = $dn; @@ -91,6 +92,9 @@ class licensePoolGeneric extends plugin $this->licenseList->setHeader(array(_("Section"),_("Description"))); $this->licenseList->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