From 47fbcd71058574142e2c43d7062fee2258908b13 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:07:22 +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@19308 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../ldapmanager/addons/ldapmanager/class_csvimport.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc b/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc index 8e1202e10..52d9e6a8f 100644 --- a/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc +++ b/gosa-plugins/ldapmanager/addons/ldapmanager/class_csvimport.inc @@ -17,10 +17,14 @@ class csvimport extends plugin function csvimport (&$config, $dn= NULL) { + $this->initTime = microtime(TRUE); /* Include config object */ $this->config= &$config; $this->ui = get_userinfo(); + stats::log('plugin', $class = get_class($this), $category = array($this->acl_category), $action = 'open', + $amount = 1, $duration = (microtime(TRUE) - $this->initTime)); + } function execute() -- 2.30.2