From 21677e31d6be08c9d4d93b335791db08409471de Mon Sep 17 00:00:00 2001 From: schweikh Date: Sat, 24 Aug 2002 11:03:48 +0000 Subject: Use "kbytes" instead of "blocks" in messages as this is really what is calculated. PR: 41936 Submitted by: Lukas Ertl MFC after: 1 week --- usr.sbin/edquota/edquota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/edquota') diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c index 0e1a988..326c741 100644 --- a/usr.sbin/edquota/edquota.c +++ b/usr.sbin/edquota/edquota.c @@ -421,7 +421,7 @@ writeprivs(quplist, outfd, name, quotatype) fprintf(fd, "Quotas for %s %s:\n", qfextension[quotatype], name); for (qup = quplist; qup; qup = qup->next) { fprintf(fd, "%s: %s %lu, limits (soft = %lu, hard = %lu)\n", - qup->fsname, "blocks in use:", + qup->fsname, "kbytes in use:", (unsigned long)(dbtob(qup->dqblk.dqb_curblocks) / 1024), (unsigned long)(dbtob(qup->dqblk.dqb_bsoftlimit) / 1024), (unsigned long)(dbtob(qup->dqblk.dqb_bhardlimit) / 1024)); @@ -472,7 +472,7 @@ readprivs(quplist, inname) return (0); } cnt = sscanf(cp, - " blocks in use: %lu, limits (soft = %lu, hard = %lu)", + " kbytes in use: %lu, limits (soft = %lu, hard = %lu)", &curblocks, &bsoftlimit, &bhardlimit); if (cnt != 3) { warnx("%s:%s: bad format", fsp, cp); -- cgit v1.1