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

gosa-core/plugins/generic/references/class_ldifViewer.inc

index 9c097194ae9c4da8b0f723777799d558052749e7..24d6d6911918a0671410399b20bad55465e329d7 100644 (file)
@@ -6,6 +6,10 @@ class ldifViewer extends plugin
 
     function __construct($config, $dn)
     {
+        $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->config = &$config;
         $this->dn = $dn;
         $ldap = $this->config->get_ldap_link();