From ae20c5fe7eb95ce18693640dfc37ce297a5285cc Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:08:05 +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@19325 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dhcp/admin/systems/services/dhcp/class_dhcpAdvanced.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpAdvanced.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpAdvanced.inc index 1c801721e..47799858a 100644 --- a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpAdvanced.inc +++ b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpAdvanced.inc @@ -35,9 +35,15 @@ class dhcpAdvanced extends plugin function dhcpAdvanced() { /* This is always an account */ + $this->initTime = microtime(TRUE); $this->is_account= TRUE; $this->setAutoStatements(); $this->setAutoOptions(); + + // Create statistic table entry + 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