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

Diff for /src/usr.bin/top/machine.c between version 1.7 and 1.8

version 1.7, 1997/09/09 15:23:13 version 1.8, 1997/11/08 23:36:44
Line 600 
Line 600 
     /* compare percent cpu (pctcpu) */      /* compare percent cpu (pctcpu) */
     if ((lresult = PP(p2, p_pctcpu) - PP(p1, p_pctcpu)) == 0)      if ((lresult = PP(p2, p_pctcpu) - PP(p1, p_pctcpu)) == 0)
     {      {
         /* use cpticks to break the tie */          /* use CPU usage to break the tie */
         if ((result = PP(p2, p_cpticks) - PP(p1, p_cpticks)) == 0)          if ((result = PP(p2, p_rtime).tv_sec - PP(p1, p_rtime).tv_sec) == 0)
         {          {
             /* use process state to break the tie */              /* use process state to break the tie */
             if ((result = sorted_state[(unsigned char) PP(p2, p_stat)] -              if ((result = sorted_state[(unsigned char) PP(p2, p_stat)] -

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8