From 60cd57ad7740d1371eb89400c62a716b572e6d46 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:08:08 +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@19326 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dhcp/admin/systems/services/dhcp/class_dhcpNetwork.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNetwork.inc b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNetwork.inc index 4c1504a23..f02c99332 100644 --- a/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNetwork.inc +++ b/gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpNetwork.inc @@ -31,7 +31,12 @@ class dhcpNetwork extends plugin function dhcpNetwork() { /* This is always an account */ + $this->initTime = microtime(TRUE); $this->is_account= TRUE; + + // 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