summaryrefslogtreecommitdiffstats
path: root/usr.bin/quota
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>2008-02-18 01:36:40 +0000
committermpp <mpp@FreeBSD.org>2008-02-18 01:36:40 +0000
commitbf34e1e172273d2a7d9f04063d1d02b66bfa5123 (patch)
tree2c1e0300e5458685548250d2f433ce988c6e192c /usr.bin/quota
parent2989f70f508ecf462c111f810ebbb008b899ec9e (diff)
downloadFreeBSD-src-bf34e1e172273d2a7d9f04063d1d02b66bfa5123.zip
FreeBSD-src-bf34e1e172273d2a7d9f04063d1d02b66bfa5123.tar.gz
Make the human readable numbers printed with the -h option a bit
more human readable by telling the human print routines to use a smaller buffer to format the value. This makes it so a value that was previously being printed as 600000K will now print as 586M.
Diffstat (limited to 'usr.bin/quota')
-rw-r--r--usr.bin/quota/quota.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c
index c007e52..c725ad9 100644
--- a/usr.bin/quota/quota.c
+++ b/usr.bin/quota/quota.c
@@ -350,10 +350,12 @@ showquotas(int type, u_long id, const char *name)
}
printf("%15s", nam);
if (hflag) {
- prthumanval(7, dbtob(qup->dqblk.dqb_curblocks));
- printf("%c", (msgb == (char *)0) ? ' ' : '*');
- prthumanval(6, dbtob(qup->dqblk.dqb_bsoftlimit));
- prthumanval(7, dbtob(qup->dqblk.dqb_bhardlimit));
+ printf(" ");
+ prthumanval(4, dbtob(qup->dqblk.dqb_curblocks));
+ printf("%c ", (msgb == (char *)0) ? ' ' : '*');
+ prthumanval(4, dbtob(qup->dqblk.dqb_bsoftlimit));
+ printf(" ");
+ prthumanval(4, dbtob(qup->dqblk.dqb_bhardlimit));
} else {
printf(" %7ju%c %6ju %7ju",
(uintmax_t)(dbtob(qup->dqblk.dqb_curblocks)
OpenPOWER on IntegriCloud