From 256d2a529e47f1b367ade8579080f26c8de52990 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 2 Aug 2010 10:08:28 +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@19334 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc b/gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc index 95a4042db..e478d329b 100644 --- a/gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc +++ b/gosa-plugins/ssh/personal/ssh/class_sshPublicKey.inc @@ -34,6 +34,7 @@ class sshPublicKey extends plugin function sshPublicKey(&$config, $dn, $acl) { /* Configuration is fine, allways */ + $this->initTime = microtime(TRUE); $this->config= &$config; $this->dn= $dn; $this->acl= $acl; @@ -63,6 +64,10 @@ class sshPublicKey extends plugin // Save copy for later usage $this->storedPublicKeys= $this->publicKeys; + + // 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