From 12cf9f732d4313ed383726fcda5db56da7fde7e2 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:08:18 +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@19330 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/generic/references/class_ldifViewer.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gosa-core/plugins/generic/references/class_ldifViewer.inc b/gosa-core/plugins/generic/references/class_ldifViewer.inc index 9c097194a..24d6d6911 100644 --- a/gosa-core/plugins/generic/references/class_ldifViewer.inc +++ b/gosa-core/plugins/generic/references/class_ldifViewer.inc @@ -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(); -- 2.30.2