This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 857a19103ed25d0813b555bea96925783787688b (commit)
from 8bd2bf6378a2f106f1328b57c3cb1ce6be9e9c8e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=857a19103ed25d0813b555bea96925783787688b
commit 857a19103ed25d0813b555bea96925783787688b
Author: Franck Villaume <[email protected]>
Date: Fri Aug 20 14:37:36 2021 +0200
quotamanagement: fix display quota size
diff --git a/src/plugins/quotamanagement/view/quota_project.php
b/src/plugins/quotamanagement/view/quota_project.php
index 46956d0..38a75ca 100644
--- a/src/plugins/quotamanagement/view/quota_project.php
+++ b/src/plugins/quotamanagement/view/quota_project.php
@@ -150,8 +150,8 @@ if (db_numrows($res_db) > 0) {
$quota_soft = $e["quota_soft"];
$quota_hard = round(($_quota_block_size * $quota_hard) / (1024*1024),
0);
$quota_soft = round(($_quota_block_size * $quota_soft) / (1024*1024),
0);
- $quota_db_hard = $e["quota_db_hard"];
- $quota_db_soft = $e["quota_db_soft"];
+ $quota_db_hard = $e["quota_db_hard"] / $_quota_block_size;
+ $quota_db_soft = $e["quota_db_soft"] / $_quota_block_size;
}
if (forge_get_config('use_shell')) {
@@ -259,7 +259,7 @@ foreach ($quotas_disk as $index => $q) {
$bgcolorstyle = '';
$msg1 = '';
$qs = $quota_soft * 1024 * 1024;
-if (($sizetot+0) > ($qs+0) && ($qs+0) > 0) {
+if ($sizetot > $qs && $qs > 0) {
$bgcolorstyle = 'background-color:#FFDCDC; color:white;';
$msg1 = _('Quota exceeded');
}
-----------------------------------------------------------------------
Summary of changes:
src/plugins/quotamanagement/view/quota_project.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits