Code

Ensure we either call the plugins constructor or manually set the initTime variable...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Aug 2010 10:07:39 +0000 (10:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Aug 2010 10:07:39 +0000 (10:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19315 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiPartition.inc

index 96de10dbc5bb310da7ba47faa2ecf2a3e26b5904..006bc35ee2d126de3a23236f26dde1ddbff0a949 100644 (file)
@@ -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()