Magellan Linux

Diff of /tags/mkinitrd-6_3_1/busybox/procps/watch.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 984 by niro, Sun May 30 11:32:42 2010 UTC revision 1123 by niro, Wed Aug 18 21:56:57 2010 UTC
# Line 52  int watch_main(int argc UNUSED_PARAM, ch Line 52  int watch_main(int argc UNUSED_PARAM, ch
52   width = (unsigned)-1; // make sure first time new_width != width   width = (unsigned)-1; // make sure first time new_width != width
53   header = NULL;   header = NULL;
54   while (1) {   while (1) {
55   printf("\033[H\033[J");   /* home; clear to the end of screen */
56     printf("\033[H""\033[J");
57   if (!(opt & 0x2)) { // no -t   if (!(opt & 0x2)) { // no -t
58   const unsigned time_len = sizeof("1234-67-90 23:56:89");   const unsigned time_len = sizeof("1234-67-90 23:56:89");
59   time_t t;   time_t t;

Legend:
Removed from v.984  
changed lines
  Added in v.1123