Got rid of the gettimeofday() hunk for progress.c since it's no longer
authorWayne Davison <wayned@samba.org>
Tue, 8 Jul 2003 16:56:58 +0000 (16:56 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 8 Jul 2003 16:56:58 +0000 (16:56 +0000)
needed.

craigb-perf.diff

index fc85215..86749a3 100644 (file)
@@ -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