Changeset 6867


Ignore:
Timestamp:
11/11/16 06:53:18 (3 years ago)
Author:
quintiliani
Message:

status print remaining time when wait for a while

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/system_control/status/status.c

    r6803 r6867  
    268268                         &rlogo, &rlen, msg, (long)MAX_BYTES_STATUS-1 ); 
    269269      if( rc == GET_NONE   )  { 
     270         if(i > timeout/5) { 
     271           fprintf( stdout, "\r%d of %d seconds...", i, timeout ); 
     272           fflush(stdout); 
     273         } 
    270274         sleep_ew( 1000 ); 
     275         fprintf( stdout, "\r"); 
    271276         continue; 
    272277      } 
Note: See TracChangeset for help on using the changeset viewer.