From 3122f76d3db28b123459f5966f4ef03b56b16642 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 13 Feb 2004 22:10:12 +0000 Subject: Fix eta calculation when resuming (This used to be commit c4114a0664467383fc343a55360b48a985fa45ac) --- source3/utils/smbget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/utils') 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