[BACK]Return to display.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / top

Diff for /src/usr.bin/top/display.c between version 1.9 and 1.10

version 1.9, 2002/02/16 21:27:55 version 1.10, 2002/06/12 06:07:16
Line 50 
Line 50 
 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;
Line 175 
Line 175 
   
 void i_loadave(mpid, avenrun)  void i_loadave(mpid, avenrun)
   
 int mpid;  pid_t mpid;
 double *avenrun;  double *avenrun;
   
 {  {
Line 187 
Line 187 
     /* 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");
Line 203 
Line 203 
   
 void u_loadave(mpid, avenrun)  void u_loadave(mpid, avenrun)
   
 int mpid;  pid_t mpid;
 double *avenrun;  double *avenrun;
   
 {  {
Line 215 
Line 215 
         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;
         }          }
   

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10