Fix ETA Calculation when resuming
authorJelmer Vernooij <jelmer@samba.org>
Fri, 13 Feb 2004 22:09:53 +0000 (22:09 +0000)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 13 Feb 2004 22:09:53 +0000 (22:09 +0000)
source/utils/smbget.c

index 92a3831752cef8a2997495bdc0414accc63acfa1..ab6e368c7000c381541e15b75c6850355d230f67 100644 (file)
@@ -219,7 +219,7 @@ void print_progress(const char *name, time_t start, time_t now, off_t start_pos,
        char *status, *filename;
        int len;
        if(now - start)avg = 1.0 * (pos - start_pos) / (now - start);
-       eta = (total - pos - start_pos) / avg;
+       eta = (total - pos) / avg;
        if(total)prcnt = 100.0 * pos / total;
 
        human_readable(pos, hpos, sizeof(hpos));