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

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

index 4aa9b03141e114a464dc8400688495e434cd3d7d..988d03a53b3719ee5e9084603ff1211ae94b5f10 100644 (file)
@@ -25,6 +25,10 @@ class dhcpNewSectionDialog extends plugin
 
     function dhcpNewSectionDialog($type)
     {
+        $this->initTime = microtime(TRUE);
+        stats::log('plugin', $class = get_class($this), $category = array($this->acl_category),  $action = 'open',
+                $amount = 1, $duration = (microtime(TRUE) - $this->initTime));
+
         $this->types= array(  "dhcpService" => _("Global options"),
                 "dhcpClass" => _("Class"),
                 "dhcpSubClass" => _("Subclass"),