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

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

index 4c1504a23423fef7620e19599ab24be481ba07e1..f02c993328173ceced8c8b0b49106d18b0f6a01e 100644 (file)
@@ -31,7 +31,12 @@ class dhcpNetwork extends plugin
     function dhcpNetwork()
     {
         /* This is always an account */
+        $this->initTime = microtime(TRUE);
         $this->is_account= TRUE;
+
+        // 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()