From aa739fc86e6558cae85c450e83ce81185fe6e449 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:07:43 +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@19317 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc b/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc index ec8241299..dfa7fe1f6 100644 --- a/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc +++ b/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc @@ -18,10 +18,15 @@ class opsiProperties extends plugin */ public function __construct($config,$product,$cfg = array() ,$hostId = "") { + $this->initTime = microtime(TRUE); $this->config = $config; $this->product = $product; $this->cfg = $cfg; $this->hostId = $hostId; + + // 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)); } -- 2.30.2