version 1.39, 2008/06/13 01:24:55 |
version 1.40, 2008/06/13 10:06:14 |
|
|
print_header(void) |
print_header(void) |
{ |
{ |
struct tm *tp; |
struct tm *tp; |
time_t t; |
time_t t, now; |
order_type *ordering; |
order_type *ordering; |
|
int start = dispstart + 1, end = dispstart + maxprint; |
|
extern int ucount(); |
|
char tbuf[26]; |
|
|
int start = dispstart + 1; |
|
int end = dispstart + maxprint; |
|
|
|
if (end > num_disp) |
if (end > num_disp) |
end = num_disp; |
end = num_disp; |
|
|
|
|
#endif |
#endif |
|
|
getloadavg(avenrun, sizeof(avenrun) / sizeof(avenrun[0])); |
getloadavg(avenrun, sizeof(avenrun) / sizeof(avenrun[0])); |
extern int ucount(); |
|
char tbuf[26]; |
|
time_t now; |
|
|
|
time(&now); |
time(&now); |
strlcpy(tbuf, ctime(&now), sizeof tbuf); |
strlcpy(tbuf, ctime(&now), sizeof tbuf); |