Mercurial > dovecot > core-2.2
changeset 11306:de9259065123 HEAD
doveadm quota get: Show current usage even if quota is unlimited.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 13 May 2010 13:09:02 +0200 |
parents | 49252a5fcdde |
children | 706e411a134d |
files | src/plugins/quota/doveadm-quota.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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(", ");