From 61ca9b0407a9c9972d805ae7627c29c45f3f777e Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 29 Jul 1996 07:22:32 +0000 Subject: (val_t): Make `long long'. --- utils/vmstat.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/vmstat.c b/utils/vmstat.c index 84950f67..c7f7a7af 100644 --- a/utils/vmstat.c +++ b/utils/vmstat.c @@ -57,14 +57,16 @@ static const char *doc = "If PERIOD is supplied, then terse mode is" " cumulative fields)."; /* We use this one type to represent all values printed by this program. It - should be signed, and hopefully large enough! */ -typedef ssize_t val_t; + should be signed, and hopefully large enough (it may need to be larger + than what the system returns values in, as we represent some quantities as + bytes instead of pages)! */ +typedef long long val_t; /* What a given number describes. */ enum val_type { COUNT, /* As-is. */ - SIZE, /* Use the most convenient unit, with suffix. */ + SIZE, /* Use the most convenient unit, with suffix */ PAGESZ, /* Like SIZE, but never changed to PAGES. */ PCENT, /* Append `%'. */ }; -- cgit v1.2.3