version 1.49, 2008/11/04 19:00:08 |
version 1.50, 2008/11/05 15:48:44 |
|
|
|
|
#define TIMEPOS 55 |
#define TIMEPOS 55 |
|
|
|
int ucount(void); |
|
void usage(void); |
|
|
/* command prompt */ |
/* command prompt */ |
|
|
void cmd_delay(const char *); |
void cmd_delay(const char *); |
|
|
int |
int |
print_header(void) |
print_header(void) |
{ |
{ |
struct tm *tp; |
time_t now; |
time_t t, now; |
|
order_type *ordering; |
|
int start = dispstart + 1, end = dispstart + maxprint; |
int start = dispstart + 1, end = dispstart + maxprint; |
extern int ucount(); |
|
char tbuf[26]; |
char tbuf[26]; |
|
|
if (end > num_disp) |
if (end > num_disp) |
|
|
|
|
tb_start(); |
tb_start(); |
|
|
#if 0 |
|
if (curr_mgr && curr_mgr->sort_fn != NULL) { |
|
ordering = curr_mgr->order_curr; |
|
if (ordering != NULL) { |
|
tbprintf(", Order: %s", ordering->name); |
|
if (sortdir < 0 && ordering->func != NULL) |
|
tbprintf(" (rev)"); |
|
} |
|
} |
|
#endif |
|
|
|
getloadavg(avenrun, sizeof(avenrun) / sizeof(avenrun[0])); |
getloadavg(avenrun, sizeof(avenrun) / sizeof(avenrun[0])); |
|
|
time(&now); |
time(&now); |
|
|
/* main program functions */ |
/* main program functions */ |
|
|
void |
void |
usage() |
usage(void) |
{ |
{ |
extern char *__progname; |
extern char *__progname; |
fprintf(stderr, "usage: %s [-abin] [-d count] " |
fprintf(stderr, "usage: %s [-abin] [-d count] " |
|
|
void |
void |
show_help(void) |
show_help(void) |
{ |
{ |
int line = 0; |
|
|
|
if (rawmode) |
if (rawmode) |
return; |
return; |
|
|