Optimized away a call to cmp_modtime() for a compare-dest file.

This commit is contained in:
Wayne Davison
2004-06-29 16:22:54 +00:00
parent 78112d305b
commit d3a4375f78

View File

@@ -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;