aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2006-11-28 12:46:02 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2006-11-28 12:46:02 +0000
commitbad4d172b4512bf80adc9f64dbb4bde74cc6bd98 (patch)
tree54a4571abbdb6a65f55daa94a9fdb8f8253b31fb /usr.bin/vmstat
parent983bba070e7a4d1bd74d4beac2458e5bc9d32d8e (diff)
Notes
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index ef5ba8abd0a7f..efd5b79945efd 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -65,7 +65,6 @@ __FBSDID("$FreeBSD$");
#include <devstat.h>
#include <err.h>
#include <errno.h>
-#include <inttypes.h>
#include <kvm.h>
#include <limits.h>
#include <memstat.h>
@@ -575,11 +574,11 @@ dovmstat(unsigned int interval, int reps)
fill_vmmeter(&sum);
fill_vmtotal(&total);
- (void)printf("%2u %1u %1u",
+ (void)printf("%2d %1d %1d",
total.t_rq - 1, total.t_dw + total.t_pw, total.t_sw);
-#define vmstat_pgtok(a) ((uintmax_t)(a) * (sum.v_page_size >> 10))
+#define vmstat_pgtok(a) ((a) * (sum.v_page_size >> 10))
#define rate(x) (((x) + halfuptime) / uptime) /* round */
- (void)printf(" %7ju %6ju ", vmstat_pgtok(total.t_avm),
+ (void)printf(" %7d %6d ", vmstat_pgtok(total.t_avm),
vmstat_pgtok(total.t_free));
(void)printf("%5lu ",
(unsigned long)rate(sum.v_vm_faults - osum.v_vm_faults));