summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-29 07:22:32 +0000
committerMiles Bader <miles@gnu.org>1996-07-29 07:22:32 +0000
commit61ca9b0407a9c9972d805ae7627c29c45f3f777e (patch)
tree8128b8eef7aeee9230a26d0da60471642c5cebf0
parent063744182f5d1b8bf4ed95e72531504d86ff53f7 (diff)
(val_t): Make `long long'.
-rw-r--r--utils/vmstat.c8
1 files 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 `%'. */
};