diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-02-13 22:09:53 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2004-02-13 22:09:53 +0000 |
commit | 91cc4a1900bf1e95244f178b6e76edf534f6186a (patch) | |
tree | 2ddb7ba897d89deaad797116d8ad4c551bda6577 /source3 | |
parent | e3d755c5b2eff14486b80ca9a4bc7857aaf1c86c (diff) | |
download | samba-91cc4a1900bf1e95244f178b6e76edf534f6186a.tar.gz samba-91cc4a1900bf1e95244f178b6e76edf534f6186a.tar.bz2 samba-91cc4a1900bf1e95244f178b6e76edf534f6186a.zip |
Fix ETA Calculation when resuming
(This used to be commit a5f09f0991e5a5bd9538211b0d430020052670c8)
Diffstat (limited to 'source3')
-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)); |