From: hickert Date: Mon, 2 Aug 2010 10:07:39 +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=9a63fb1de2b6edac61075da97556077ba62dcd19;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@19315 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiPartition.inc b/gosa-plugins/fai/admin/fai/class_faiPartition.inc index 96de10dbc..006bc35ee 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPartition.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPartition.inc @@ -46,7 +46,8 @@ class faiPartition extends plugin function __construct($config, $object, $parent,$type) { - $this->parent = $parent; + $this->initTime = microtime(TRUE); + $this->parent = $parent; $this->FAIdiskType = $type; // Check if we should be able to add primary partitions. @@ -135,6 +136,11 @@ class faiPartition extends plugin } } } + + // 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()