aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2006-02-14 12:26:51 +0000
committerBruce Evans <bde@FreeBSD.org>2006-02-14 12:26:51 +0000
commitcd8ad406adfd60dbb647ad3c4ba8029c90fbe88a (patch)
treef48e5e8e379cd732f302e00b5287af56fa09dd7a /usr.bin
parentefd19b8fd01ab0d5b10c78c8eddbd9bed512b11f (diff)
downloadsrc-cd8ad406adfd60dbb647ad3c4ba8029c90fbe88a.tar.gz
src-cd8ad406adfd60dbb647ad3c4ba8029c90fbe88a.zip
Removed the frobbing of CPU percentages from > 99.9 to 99.9. Rev.1.35
made it unnecessary. (Rev.1.6 had to reduce the field width to 4, and changed 100.0 and preposterous larger values down to 99.9 since 100.0 wouldn't have fitted. Rev.1.35 handles precentages > 99.9 well enough by changing the format to %.0f when the string given by the initial format is too wide.) Even with this change, during short testing I've never seen a percentage of 100 being displayed by systat -v, although top(1) displays percentages of 100 user or 100 idle for similar loads.
Notes
Notes: svn path=/head/; revision=155670
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/vmstat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index 2fc003a7bc9e..24c47f43e83b 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -460,8 +460,6 @@ showkre()
f1 = cputime(i);
f2 += f1;
l = (int) ((f2 + 1.0) / 2.0) - psiz;
- if (f1 > 99.9)
- f1 = 99.9; /* no room to display 100.0 */
putfloat(f1, GRAPHROW, GRAPHCOL + 10 * lc, 4, 1, 0);
move(GRAPHROW + 2, psiz);
psiz += l;