From aae1fab5fb45c118eb7a1daeb3c511bb49ef9eee Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:07:36 +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@19314 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc index 9c36dc1a6..b65b8fc30 100644 --- a/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc +++ b/gosa-plugins/rsyslog/addons/rsyslog/class_rsyslog.inc @@ -23,6 +23,13 @@ class rsyslog extends plugin function rsyslog (&$config, $dn= NULL) { + $this->initTime = microtime(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)); + + $this->config= &$config; $this->ui = get_userinfo(); -- 2.30.2