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

gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpAdvanced.inc

index 1c801721e62581f723d974016af155bacfb8dfe3..47799858a8de747d4275f5460a6088f32432296c 100644 (file)
@@ -35,9 +35,15 @@ class dhcpAdvanced extends plugin
     function dhcpAdvanced()
     {
         /* This is always an account */
+        $this->initTime = microtime(TRUE);
         $this->is_account= TRUE;
         $this->setAutoStatements();
         $this->setAutoOptions();
+
+        // 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));
+
     }
 
     function execute()