Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
00baa16a
Commit
00baa16a
authored
Nov 16, 2011
by
tbrehm
Browse files
Fixes for FS#1843 - mail quota usage statistics with courier
parent
0d349d62
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/monitor_tools.inc.php
View file @
00baa16a
...
...
@@ -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
);
...
...
server/mods-available/monitor_core_module.inc.php
View file @
00baa16a
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment