diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-02-13 22:10:12 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2004-02-13 22:10:12 +0000 |
commit | 3122f76d3db28b123459f5966f4ef03b56b16642 (patch) | |
tree | fe9fc7d30fc7e224ebfd0d630fe53066bd31beaa | |
parent | 94cb77579b3c4834f11265ce0f3cb70f474181a8 (diff) | |
download | samba-3122f76d3db28b123459f5966f4ef03b56b16642.tar.gz samba-3122f76d3db28b123459f5966f4ef03b56b16642.tar.bz2 samba-3122f76d3db28b123459f5966f4ef03b56b16642.zip |
Fix eta calculation when resuming
(This used to be commit c4114a0664467383fc343a55360b48a985fa45ac)
-rw-r--r-- | source3/utils/smbget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c index 92a3831752..ab6e368c70 100644 --- a/source3/utils/smbget.c +++ b/source3/utils/smbget.c @@ -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)); |