Code

Ensure we either call the plugins constructor or manually set the initTime variable...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Aug 2010 10:07:53 +0000 (10:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Aug 2010 10:07:53 +0000 (10:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19321 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/opsi/admin/opsiLicenses/class_licensePoolGeneric.inc

index b394b5dfd2529e7b8dad8aae373adc522ba16146..dddcd36f8f1b3398acdb356ee5d43d491633ea15 100644 (file)
@@ -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));
     }