mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-02-05 20:52:45 -05:00
Optimized away a call to cmp_modtime() for a compare-dest file.
This commit is contained in:
@@ -482,7 +482,8 @@ void recv_generator(char *fname, struct file_struct *file, int i, int f_out)
|
||||
return;
|
||||
}
|
||||
|
||||
if (update_only && cmp_modtime(st.st_mtime,file->modtime)>0 && fnamecmp == fname) {
|
||||
if (update_only && fnamecmp == fname
|
||||
&& cmp_modtime(st.st_mtime, file->modtime) > 0) {
|
||||
if (verbose > 1)
|
||||
rprintf(FINFO,"%s is newer\n",fname);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user