version 1.42, 2006/03/04 06:54:18 |
version 1.43, 2006/03/04 06:58:12 |
|
|
int displays = 0; /* indicates unspecified */ |
int displays = 0; /* indicates unspecified */ |
char do_unames = Yes; |
char do_unames = Yes; |
struct process_select ps; |
struct process_select ps; |
char dostates = No; |
|
char interactive = Maybe; |
char interactive = Maybe; |
char warnings = 0; |
char warnings = 0; |
double delay = Default_DELAY; |
double delay = Default_DELAY; |
|
|
(*d_procstates)(system_info.p_total, system_info.procstates); |
(*d_procstates)(system_info.p_total, system_info.procstates); |
|
|
/* display the cpu state percentage breakdown */ |
/* display the cpu state percentage breakdown */ |
if (dostates) { /* but not the first time */ |
(*d_cpustates)(system_info.cpustates); |
(*d_cpustates)(system_info.cpustates); |
|
} else { |
|
/* we'll do it next time */ |
|
if (smart_terminal) |
|
z_cpustates(); |
|
else { |
|
if (putchar('\n') == EOF) |
|
exit(1); |
|
} |
|
dostates = Yes; |
|
} |
|
|
|
/* display memory stats */ |
/* display memory stats */ |
(*d_memory)(system_info.memory); |
(*d_memory)(system_info.memory); |