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:34 +0000 (10:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 2 Aug 2010 10:07:34 +0000 (10:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19313 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mail/addons/mailqueue/class_mailqueue.inc

index f94e71210dc26d601337ed8a145d1a8b0717d184..74cc95774433f14cf557e0b861710a5793fa269a 100644 (file)
@@ -30,6 +30,12 @@ class mailqueue extends plugin
     $this->config   = &$config;
     $this->si_queue = new si_mailqueue($this->config);
     $this->getServer();
+
+    // Create statistic table entry
+    $this->initTime = microtime(TRUE);
+    stats::log('plugin', $class = get_class($this), $category = array($this->acl_category),  $action = 'open',
+            $amount = 1, $duration = (microtime(TRUE) - $this->initTime));
+
   }