summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-04-23 13:10:29 +0000
committertjr <tjr@FreeBSD.org>2004-04-23 13:10:29 +0000
commit82d781d1b5098b0c10ef38c4d12369b205c0bd86 (patch)
tree4064f128653bd0a2c6dc2c3f7399c5c91fcab8ce /usr.bin/vmstat
parent3fd35f61f6376673a2b9d2226b68fb2078bb9d46 (diff)
downloadFreeBSD-src-82d781d1b5098b0c10ef38c4d12369b205c0bd86.zip
FreeBSD-src-82d781d1b5098b0c10ef38c4d12369b205c0bd86.tar.gz
Print fork statistics with %u as they are unsigned quantities.
PR: 65889 Submitted by: Ken Stailey
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index d7a7f0e..b45cd59 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -763,15 +763,15 @@ static void
doforkst(void)
{
fill_vmmeter(&sum);
- (void)printf("%d forks, %d pages, average %.2f\n",
+ (void)printf("%u forks, %u pages, average %.2f\n",
sum.v_forks, sum.v_forkpages,
sum.v_forks == 0 ? 0.0 :
(double)sum.v_forkpages / sum.v_forks);
- (void)printf("%d vforks, %d pages, average %.2f\n",
+ (void)printf("%u vforks, %u pages, average %.2f\n",
sum.v_vforks, sum.v_vforkpages,
sum.v_vforks == 0 ? 0.0 :
(double)sum.v_vforkpages / sum.v_vforks);
- (void)printf("%d rforks, %d pages, average %.2f\n",
+ (void)printf("%u rforks, %u pages, average %.2f\n",
sum.v_rforks, sum.v_rforkpages,
sum.v_rforks == 0 ? 0.0 :
(double)sum.v_rforkpages / sum.v_rforks);
OpenPOWER on IntegriCloud