Commit 00baa16a authored by tbrehm's avatar tbrehm

Fixes for FS#1843 - mail quota usage statistics with courier

parent 0d349d62
......@@ -177,7 +177,7 @@ class monitor_tools {
unset($quotafile);
} else {
exec('du -s '.escapeshellcmd($filename),$out);
$parts = explode(' ',$out);
$parts = explode(' ',$out[0]);
$data[$email]['used'] = intval($parts[0])*1024;
unset($out);
unset($parts);
......
......@@ -120,6 +120,13 @@ class monitor_core_module {
global $app;
/*
* This monitoring is expensive, so do it only every 15 minutes
*/
$min = @date('i');
if ($min % 15 != 0) return;
/*
* First we get the Monitoring-data from the tools
*/
$res = $this->_tools->monitorEmailQuota();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment