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:51 +0000 (10:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Aug 2010 10:07:51 +0000 (10:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19320 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index b2c8edefbb86b70ca286c1cc770ae45a3162c57b..7d815d40fae10b81f7fdb9d46e61acf888a0128d 100644 (file)
@@ -55,7 +55,7 @@ class licenseGeneric extends plugin
 
     function __construct(&$config, $dn, $license, $hosts = array())
     {
-
+        $this->initTime = microtime(TRUE);
         $this->config = $config;
         $this->data = $license;
         $this->dn = $dn;
@@ -72,6 +72,10 @@ class licenseGeneric extends plugin
 
         // Extract pool name out of the fake dn.
         $this->init();
+
+        // 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));
     }