This commit is contained in:
albert
2002-10-27 10:35:13 +00:00
parent 2591b1f87f
commit ea4be1f178
5 changed files with 256 additions and 23 deletions

View File

@ -191,7 +191,8 @@ int main(int argc, char *argv[]) {
#endif
unsigned int moreheaders=TRUE;
unsigned int tog=0; /* toggle switch for cleaner code */
unsigned int i,hz;
unsigned int i;
unsigned int hz = Hertz;
unsigned int running,blocked,swapped;
jiff cpu_use[2], cpu_nic[2], cpu_sys[2], cpu_idl[2], cpu_iow[2];
jiff duse,dsys,didl,Div,divo2;
@ -257,7 +258,6 @@ int main(int argc, char *argv[]) {
dsys= *cpu_sys;
didl= *cpu_idl + *cpu_iow;
Div= duse+dsys+didl;
hz=Hertz; /* get ticks/s from libproc */
divo2= Div/2UL;
printf(format,
running,blocked,swapped,