From: Wayne Davison Date: Tue, 8 Jul 2003 16:56:58 +0000 (+0000) Subject: Got rid of the gettimeofday() hunk for progress.c since it's no longer X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/commitdiff_plain/b10e9d48c9c36b78bc4366b4df73ba78962673d8 Got rid of the gettimeofday() hunk for progress.c since it's no longer needed. --- diff --git a/craigb-perf.diff b/craigb-perf.diff index fc85215..86749a3 100644 --- a/craigb-perf.diff +++ b/craigb-perf.diff @@ -31,6 +31,7 @@ There are some other unneeded system calls: - One example is that show_progress() calls gettimeofday() even if do_progress is not set. show_progress() is called on every block, so there is an extra system call per (700 byte) block. + (NOTE: this is currently fixed in CVS.) - Another example is that file_write writes each matching (700 byte) block without buffering, so that's another system call per block. @@ -331,18 +332,6 @@ diff -bur rsync/main.c rsync-craig/main.c exit_cleanup(status); } -diff -bur rsync/progress.c rsync-craig/progress.c ---- rsync/progress.c Sun Apr 7 22:28:57 2002 -+++ rsync-craig/progress.c Sat Dec 7 18:57:19 2002 -@@ -97,6 +97,8 @@ - extern int do_progress, am_server; - struct timeval now; - -+ if (!do_progress) return; -+ - gettimeofday(&now, NULL); - - if (!start_time.tv_sec && !start_time.tv_usec) { diff -bur rsync/proto.h rsync-craig/proto.h --- rsync/proto.h Wed Jul 31 17:37:02 2002 +++ rsync-craig/proto.h Sun Dec 8 16:27:55 2002