From 2bfa70fd30c49fd1db98ed3f2c44cd45b98e4503 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:07:32 +0000 Subject: [PATCH] Ensure we either call the plugins constructor or manually set the initTime variable for the new statistics plugin. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19312 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc index e78391595..99a7fc094 100644 --- a/gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc +++ b/gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc @@ -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() -- 2.30.2