summaryrefslogtreecommitdiff
path: root/usr.bin/top/machine.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-09-20 06:19:15 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-09-20 06:19:15 +0000
commit37dcc548cd06c2df68502a5e9d1b8422a18af8fd (patch)
tree219ff6eb29a89b02fdc5e7f194658afb50d2727d /usr.bin/top/machine.c
parent4cd3eb4f514a0a7336c26d9a4576e351bd22a1a6 (diff)
cp_time is long, deal with it.
Diffstat (limited to 'usr.bin/top/machine.c')
-rw-r--r--usr.bin/top/machine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index dcdd40a64c0..a4279b29b6d 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machine.c,v 1.12 1998/09/20 05:58:54 niklas Exp $ */
+/* $OpenBSD: machine.c,v 1.13 1998/09/20 06:19:14 niklas Exp $ */
/*
* top - a top users display for Unix
@@ -143,9 +143,9 @@ static int hz;
static unsigned long cp_time_offset;
/* these are for calculating cpu state percentages */
-static int cp_time[CPUSTATES];
-static int cp_old[CPUSTATES];
-static int cp_diff[CPUSTATES];
+static long cp_time[CPUSTATES];
+static long cp_old[CPUSTATES];
+static long cp_diff[CPUSTATES];
/* these are for detailing the process states */