Displaying 2 results from an estimated 2 matches for "get_rsync_start_time".
2004 Apr 19
3
[PATCH] time limit
...**
+ 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 > expiration_time ) ? 1 : 0;
+}
/**
* Write len bytes to the file descriptor @p fd.
@@ -772,6 +793,7 @@
fd_set w_fds, r_fds;
int fd_count, count;...
2004 Apr 22
2
[PATCH] --timelimit and --stopat
...**
+ 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 > expiration_time ) ? 1 : 0;
+}
+
+/**
+ When --stopat is used, compare current stopat time and the current calendar time,
+ and return 1 when the stopat...