version 1.9, 2002/02/16 21:27:55 |
version 1.10, 2002/06/12 06:07:16 |
|
|
FILE *debug; |
FILE *debug; |
#endif |
#endif |
|
|
static int lmpid = 0; |
static pid_t lmpid = 0; |
static int last_hi = 0; /* used in u_process and u_endscreen */ |
static int last_hi = 0; /* used in u_process and u_endscreen */ |
static int lastline = 0; |
static int lastline = 0; |
static int display_width = MAX_COLS; |
static int display_width = MAX_COLS; |
|
|
|
|
void i_loadave(mpid, avenrun) |
void i_loadave(mpid, avenrun) |
|
|
int mpid; |
pid_t mpid; |
double *avenrun; |
double *avenrun; |
|
|
{ |
{ |
|
|
/* mpid == -1 implies this system doesn't have an _mpid */ |
/* mpid == -1 implies this system doesn't have an _mpid */ |
if (mpid != -1) |
if (mpid != -1) |
{ |
{ |
printf("last pid: %5d; ", mpid); |
printf("last pid: %5ld; ", (long)mpid); |
} |
} |
|
|
printf("load averages"); |
printf("load averages"); |
|
|
|
|
void u_loadave(mpid, avenrun) |
void u_loadave(mpid, avenrun) |
|
|
int mpid; |
pid_t mpid; |
double *avenrun; |
double *avenrun; |
|
|
{ |
{ |
|
|
if (mpid != lmpid) |
if (mpid != lmpid) |
{ |
{ |
Move_to(x_lastpid, y_lastpid); |
Move_to(x_lastpid, y_lastpid); |
printf("%5d", mpid); |
printf("%5ld", (long)mpid); |
lmpid = mpid; |
lmpid = mpid; |
} |
} |
|
|