search for: has_timelimit_expired

Displaying 2 results from an estimated 2 matches for "has_timelimit_expired".

2004 Apr 19
3
[PATCH] time limit
...nt timelimit; extern int verbose; extern int io_timeout; extern int am_server; @@ -759,6 +760,26 @@ select(0, NULL, NULL, NULL, &tv); } +/** + When --timelimit is used, compare rsync_start_time and the current time and + return 1 when the timelimit has been reached. + **/ +static int has_timelimit_expired() +{ + struct timeval tv; + time_t start_time = 0; + time_t expiration_time = 0; + + assert(timelimit > 0); + + start_time = get_rsync_start_time(); + assert( start_time > 0); + + gettimeofday(&tv, NULL); + expiration_time = start_time + (timelimit * 60); + + return ( tv.tv_sec > expir...
2004 Apr 22
2
[PATCH] --timelimit and --stopat
...s; - +extern char *stopat; const char phase_unknown[] = "unknown"; @@ -759,6 +760,58 @@ select(0, NULL, NULL, NULL, &tv); } +/** + When --timelimit is used, compare rsync_start_time and the current time and + return 1 when the timelimit has been reached. + **/ +static int has_timelimit_expired() +{ + struct timeval tv; + time_t start_time = 0; + time_t expiration_time = 0; + + assert(timelimit > 0); + + start_time = get_rsync_start_time(); + assert( start_time > 0); + + gettimeofday(&tv, NULL); + expiration_time = start_time + (timelimit * 60); + + return ( tv.tv_sec > expir...