Module Name:    src
Committed By:   bouyer
Date:           Wed Feb 17 18:55:14 UTC 2010

Modified Files:
        src/usr.sbin/repquota: repquota.c

Log Message:
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 ...


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/usr.sbin/repquota/repquota.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/repquota/repquota.c
diff -u src/usr.sbin/repquota/repquota.c:1.24 src/usr.sbin/repquota/repquota.c:1.25
--- src/usr.sbin/repquota/repquota.c:1.24	Sat Apr 18 09:20:40 2009
+++ src/usr.sbin/repquota/repquota.c	Wed Feb 17 18:55:14 2010
@@ -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 ? '+' : '-',

Reply via email to