From: Wayne Davison Date: Tue, 29 Jun 2004 16:22:54 +0000 (+0000) Subject: Optimized away a call to cmp_modtime() for a compare-dest file. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/d3a4375f78be4a784abc0c95fc8c99f979decc3f Optimized away a call to cmp_modtime() for a compare-dest file. --- diff --git a/generator.c b/generator.c index fa2d9eab..84958b82 100644 --- a/generator.c +++ b/generator.c @@ -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;