Skip to content

Commit 54b0478

Browse files
author
Marius Burkard
committed
Merge branch '5754-wrong-group-quota-calculations' into 'develop'
Resolve "wrong group quota calculations" Closes #5754 See merge request ispconfig/ispconfig3!1191
2 parents 9bc59f0 + f827797 commit 54b0478

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

server/lib/classes/cron.d/100-monitor_hd_quota.inc.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ public function onRunJob() {
112112
$groupname = $s[0];
113113
if (substr($groupname, 0, 6) == 'client') {
114114
if (isset($data['group'][$groupname])) {
115-
$data['group'][$groupname]['used'] += $s[1];
116-
$data['group'][$groupname]['soft'] += $s[2];
117-
$data['group'][$groupname]['hard'] += $s[3];
115+
$data['group'][$groupname]['used'] += $s[2];
116+
$data['group'][$groupname]['soft'] += $s[3];
117+
$data['group'][$groupname]['hard'] += $s[4];
118118
} else {
119-
$data['group'][$groupname]['used'] = $s[1];
120-
$data['group'][$groupname]['soft'] = $s[2];
121-
$data['group'][$groupname]['hard'] = $s[3];
119+
$data['group'][$groupname]['used'] = $s[2];
120+
$data['group'][$groupname]['soft'] = $s[3];
121+
$data['group'][$groupname]['hard'] = $s[4];
122122
}
123123
}
124124
}

0 commit comments

Comments
 (0)