home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / sun / volume2 / tahoe-systat / patch01 / iostat.c.diff < prev    next >
Encoding:
Text File  |  1990-10-23  |  1.2 KB  |  50 lines

  1. *** iostat.c.orig    Mon Jun 11 15:32:59 1990
  2. --- iostat.c    Tue Jun 12 18:54:50 1990
  3. ***************
  4. *** 45,50 ****
  5. --- 45,51 ----
  6.           { "_dk_seek" },
  7.   #define X_CP_TIME       5
  8.           { "_cp_time" },
  9. + #if 0
  10.   #ifdef vax
  11.   #define X_MBDINIT       (X_CP_TIME+1)
  12.           { "_mbdinit" },
  13. ***************
  14. *** 55,60 ****
  15. --- 56,62 ----
  16.   #define    X_VBDINIT    (X_CP_TIME+1)
  17.       { "_vbdinit" },
  18.   #endif
  19. + #endif                    /* if 0 */
  20.           { "" },
  21.   };
  22.   
  23. ***************
  24. *** 314,325 ****
  25.           if (v > colwidth) {
  26.                   sprintf(buf, "%4.1f", val);
  27.                   k -= strlen(buf);
  28. !                 while (k--)
  29.                           waddch(wnd, 'X');
  30.                   waddstr(wnd, buf);
  31.                   return;
  32.           }
  33. !         while (k--)
  34.                   waddch(wnd, 'X');
  35.           wclrtoeol(wnd);
  36.   }
  37. --- 316,327 ----
  38.           if (v > colwidth) {
  39.                   sprintf(buf, "%4.1f", val);
  40.                   k -= strlen(buf);
  41. !                 while (k-- > 0)
  42.                           waddch(wnd, 'X');
  43.                   waddstr(wnd, buf);
  44.                   return;
  45.           }
  46. !         while (k-- > 0)
  47.                   waddch(wnd, 'X');
  48.           wclrtoeol(wnd);
  49.   }
  50.