Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/repquota Make block fields one char wider; allows t...



details:   https://anonhg.NetBSD.org/src/rev/6884fb064b7d
branches:  trunk
changeset: 752167:6884fb064b7d
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Wed Feb 17 18:55:14 2010 +0000

description:
Make block fields one char wider; allows to sanely display quotas up to
99.9GB while still fitting 80 columns.
Something else needs to be found for the long term ...

diffstat:

 usr.sbin/repquota/repquota.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r f87adefc47ab -r 6884fb064b7d usr.sbin/repquota/repquota.c
--- a/usr.sbin/repquota/repquota.c      Wed Feb 17 17:36:32 2010 +0000
+++ b/usr.sbin/repquota/repquota.c      Wed Feb 17 18:55:14 2010 +0000
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)repquota.c 8.2 (Berkeley) 11/22/94";
 #else
-__RCSID("$NetBSD: repquota.c,v 1.24 2009/04/18 09:20:40 lukem Exp $");
+__RCSID("$NetBSD: repquota.c,v 1.25 2010/02/17 18:55:14 bouyer Exp $");
 #endif
 #endif /* not lint */
 
@@ -216,7 +216,7 @@
        fclose(qf);
        printf("                        Block limits               File limits\n");
        printf(type == USRQUOTA ? "User " : "Group");
-       printf("           used    soft    hard  grace      used    soft    hard  grace\n");
+       printf("            used     soft     hard  grace      used    soft    hard  grace\n");
        for (id = 0; id <= highid[type]; id++) {
                fup = lookup(id, type);
                if (fup == 0)
@@ -228,7 +228,7 @@
                        printf("%s ", fup->fu_name);
                else
                        printf("%-10s", fup->fu_name);
-               printf("%c%c%8d%8d%8d%7s",
+               printf("%c%c%9d%9d%9d%7s",
                        fup->fu_dqblk.dqb_bsoftlimit && 
                            fup->fu_dqblk.dqb_curblocks >= 
                            fup->fu_dqblk.dqb_bsoftlimit ? '+' : '-',



Home | Main Index | Thread Index | Old Index