dovecot-2.0: quota: Minor code cleanup.

dovecot at dovecot.org dovecot at dovecot.org
Wed Dec 9 00:51:37 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/b166d2cc49a6
changeset: 10434:b166d2cc49a6
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Dec 08 17:51:29 2009 -0500
description:
quota: Minor code cleanup.

diffstat:

1 file changed, 3 insertions(+), 6 deletions(-)
src/plugins/quota/quota.c |    9 +++------

diffs (20 lines):

diff -r 4002e686d38d -r b166d2cc49a6 src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c	Tue Dec 08 17:50:37 2009 -0500
+++ b/src/plugins/quota/quota.c	Tue Dec 08 17:51:29 2009 -0500
@@ -325,13 +325,10 @@ quota_rule_recalculate_relative_rules(st
 quota_rule_recalculate_relative_rules(struct quota_rule *rule,
 				      int64_t bytes_limit, int64_t count_limit)
 {
-	if (rule->bytes_percent > 0) {
+	if (rule->bytes_percent > 0)
 		rule->bytes_limit = bytes_limit * rule->bytes_percent / 100;
-	}
-	if (rule->count_percent > 0) {
-		rule->count_limit = count_limit *
-			rule->count_percent / 100;
-	}
+	if (rule->count_percent > 0)
+		rule->count_limit = count_limit * rule->count_percent / 100;
 }
 
 void quota_root_recalculate_relative_rules(struct quota_root_settings *root_set,


More information about the dovecot-cvs mailing list