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

gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc

index e783915953187fbfb5c33718f8abaa55040d31eb..99a7fc094c36be26fe8264ad5d1610915ad98241 100644 (file)
@@ -14,8 +14,15 @@ class ldif extends plugin
 
     function ldif (&$config)
     {
+        $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));
+
+
         /* Include config object */
         $this->ldif= new ldiftab($config, $config->data['TABS']['LDIFTAB'], "");
+
     }
 
     function execute()