From: hickert Date: Mon, 2 Aug 2010 10:08:15 +0000 (+0000) Subject: Ensure we either call the plugins constructor or manually set the initTime variable... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6b2fd706541af94ae4af71e42fc90fb0059cc6e1;p=gosa.git 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@19329 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb5_policy.inc b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb5_policy.inc index 3379df4cc..ef0f7de23 100644 --- a/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb5_policy.inc +++ b/gosa-plugins/mit-krb5/admin/systems/services/kerberos/class_krb5_policy.inc @@ -37,6 +37,7 @@ class krb5_policy extends plugin */ public function __construct($config,$entry,$parent) { + $this->initTime = microtime(TRUE); $this->config = $config; $this->parent = $parent; if(count($entry)){ @@ -53,6 +54,11 @@ class krb5_policy extends plugin $this->data['PW_MIN_LIFE'] = 36000; } $this->init_name = $this->name; + + // 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)); + }