diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-03 19:02:31 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-03 19:02:31 +0000 |
commit | 2a84335088b17863bfb6ba7b15f23c512855adbb (patch) | |
tree | 563629bc6d7cfd8e233ae1f73fdeb2bf7f191b1f /usr.bin/quota/quota.c | |
parent | 50661b05fe92134a31865acae626c43222b3806a (diff) |
Report quotas > 10GB in a readable way. Diff based on PR 2836.
ok deraadt@
Diffstat (limited to 'usr.bin/quota/quota.c')
-rw-r--r-- | usr.bin/quota/quota.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index 52aa1ce476a..02506020f8d 100644 --- a/usr.bin/quota/quota.c +++ b/usr.bin/quota/quota.c @@ -1,4 +1,4 @@ -/* $OpenBSD: quota.c,v 1.25 2005/04/01 04:31:09 deraadt Exp $ */ +/* $OpenBSD: quota.c,v 1.26 2005/04/03 19:02:30 otto Exp $ */ /* * Copyright (c) 1980, 1990, 1993 @@ -41,7 +41,7 @@ static const char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)quota.c 8.1 (Berkeley) 6/6/93";*/ static const char rcsid[] = -"$OpenBSD: quota.c,v 1.25 2005/04/01 04:31:09 deraadt Exp $"; +"$OpenBSD: quota.c,v 1.26 2005/04/03 19:02:30 otto Exp $"; #endif /* not lint */ /* @@ -360,7 +360,7 @@ showquotas(int type, u_long id, const char *name) printf("%s\n", qup->fsname); nam = ""; } - printf("%15s%8d%c%7d%8d%8s", + printf("%12s %7d%c %7d %7d %7s", nam, (int)(dbtob((u_quad_t)qup->dqblk.dqb_curblocks) / 1024), @@ -371,7 +371,7 @@ showquotas(int type, u_long id, const char *name) / 1024), (msgb == (char *)0) ? "" : timeprt(qup->dqblk.dqb_btime)); - printf("%8d%c%7d%8d%8s\n", + printf(" %7d%c %7d %7d %7s\n", qup->dqblk.dqb_curinodes, (msgi == (char *)0) ? ' ' : '*', qup->dqblk.dqb_isoftlimit, @@ -393,7 +393,7 @@ heading(int type, u_long id, const char *name, const char *tag) printf("Disk quotas for %s %s (%cid %ld): %s\n", qfextension[type], name, *qfextension[type], id, tag); if (!qflag && tag[0] == '\0') { - printf("%15s%8s %7s%8s%8s%8s %7s%8s%8s\n", + printf("%12s%8s%9s%8s%8s%9s%8s%8s%8s\n", "Filesystem", "KBytes", "quota", |