dovecot-1.1: quota debug: Another "(0%)" hiding.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jan 21 19:40:11 EET 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/3bf99b87d50b
changeset: 8114:3bf99b87d50b
user: Timo Sirainen <tss at iki.fi>
date: Wed Jan 21 12:39:18 2009 -0500
description:
quota debug: Another "(0%)" hiding.
diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
src/plugins/quota/quota.c | 10 +++++++---
diffs (21 lines):
diff -r 6ba45ed14f7f -r 3bf99b87d50b src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c Wed Jan 21 12:37:07 2009 -0500
+++ b/src/plugins/quota/quota.c Wed Jan 21 12:39:18 2009 -0500
@@ -393,10 +393,14 @@ int quota_root_add_rule(struct quota_roo
quota_root_recalculate_relative_rules(root);
if (root->quota->debug) {
i_info("Quota rule: root=%s mailbox=%s "
- "bytes=%lld (%u%%) messages=%lld (%u%%)", root->name,
+ "bytes=%lld%s messages=%lld%s", root->name,
mailbox_name,
- (long long)rule->bytes_limit, rule->bytes_percent,
- (long long)rule->count_limit, rule->count_percent);
+ (long long)rule->bytes_limit,
+ rule->bytes_percent == 0 ? "" :
+ t_strdup_printf(" (%u%%)", rule->bytes_percent),
+ (long long)rule->count_limit,
+ rule->count_percent == 0 ? "" :
+ t_strdup_printf(" (%u%%)", rule->count_percent));
}
return ret;
}
More information about the dovecot-cvs
mailing list