Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp don't fudge out the stalltime when calculating t...



details:   https://anonhg.NetBSD.org/src/rev/68c4a766f865
branches:  trunk
changeset: 476795:68c4a766f865
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Sep 28 07:54:01 1999 +0000

description:
don't fudge out the stalltime when calculating the ETA. this means that the
ETA might be over and will appear to drop rapidly, rather than being under
and appear not to change. the original code makes sense when you're testing
by suspending & resuming the client. however, the unfudged number is probably
better in reality, especially for slow spurty networks.

requested by ITOH Yasufumi <itohy%netbsd.org@localhost> in [bin/7977]

diffstat:

 usr.bin/ftp/util.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 4c5472f2be35 -r 68c4a766f865 usr.bin/ftp/util.c
--- a/usr.bin/ftp/util.c        Tue Sep 28 07:51:05 1999 +0000
+++ b/usr.bin/ftp/util.c        Tue Sep 28 07:54:01 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.65 1999/09/28 06:47:42 lukem Exp $  */
+/*     $NetBSD: util.c,v 1.66 1999/09/28 07:54:01 lukem Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: util.c,v 1.65 1999/09/28 06:47:42 lukem Exp $");
+__RCSID("$NetBSD: util.c,v 1.66 1999/09/28 07:54:01 lukem Exp $");
 #endif /* not lint */
 
 /*
@@ -726,10 +726,6 @@
        if (cursize > lastsize) {
                lastupdate = now;
                lastsize = cursize;
-               if (wait.tv_sec >= STALLTIME) { /* fudge out stalled time */
-                       start.tv_sec += wait.tv_sec;
-                       start.tv_usec += wait.tv_usec;
-               }
                wait.tv_sec = 0;
        }
 



Home | Main Index | Thread Index | Old Index