Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.bin/systat
Module Name: src
Committed By: kre
Date: Sun Jun 16 22:44:01 UTC 2024
Modified Files:
src/usr.bin/systat: main.c
Log Message:
Revert previous, and switch to using real arithmetic.
Ever since this code was first committed to the CSRG SCCS
tree, in Oct 1983, it has contained either
int dellave;
or more recently:
static int dellave;
(that change is irrelevant, as is the move of the declaration
from systat.h into main.c)
And then in main() initialised it as:
dellave = 0.0;
It seems clear to me that the variable really should have been a
double since day one. All its uses were in floating point contexts.
So, undo the change to use int constants, and instead just make
"dellave" (the load average delta) be a double.
This should make the load average bar which appears at the
top of most systat display screens more sensitive to showing
when the load average is increasing or decreasing (showing
it using '>' or '<' instead of '|' which is used when there
is not much change since last time).
To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/usr.bin/systat/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index