dovecot-2.0: doveadm quota get: Show current usage even if quota...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 13 14:09:05 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/de9259065123
changeset: 11306:de9259065123
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 13 13:09:02 2010 +0200
description:
doveadm quota get: Show current usage even if quota is unlimited.

diffstat:

 src/plugins/quota/doveadm-quota.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (17 lines):

diff -r 49252a5fcdde -r de9259065123 src/plugins/quota/doveadm-quota.c
--- a/src/plugins/quota/doveadm-quota.c	Thu May 13 13:01:26 2010 +0200
+++ b/src/plugins/quota/doveadm-quota.c	Thu May 13 13:09:02 2010 +0200
@@ -28,9 +28,10 @@
 			printf("%llu/%llu",
 			       (unsigned long long)value,
 			       (unsigned long long)limit);
-		} else if (ret == 0)
-			printf("none");
-		else
+		} else if (ret == 0) {
+			printf("%llu/unlimited",
+			       (unsigned long long)value);
+		} else
 			printf("error");
 		if (res[1] != NULL)
 			printf(", ");


More information about the dovecot-cvs mailing list