From 91cc4a1900bf1e95244f178b6e76edf534f6186a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 13 Feb 2004 22:09:53 +0000 Subject: Fix ETA Calculation when resuming (This used to be commit a5f09f0991e5a5bd9538211b0d430020052670c8) --- source3/utils/smbget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit