git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdbeb7d
)
Fix ETA Calculation when resuming
author
Jelmer Vernooij
<jelmer@samba.org>
Fri, 13 Feb 2004 22:09:53 +0000
(22:09 +0000)
committer
Jelmer Vernooij
<jelmer@samba.org>
Fri, 13 Feb 2004 22:09:53 +0000
(22:09 +0000)
source/utils/smbget.c
patch
|
blob
|
history
diff --git
a/source/utils/smbget.c
b/source/utils/smbget.c
index 92a3831752cef8a2997495bdc0414accc63acfa1..ab6e368c7000c381541e15b75c6850355d230f67 100644
(file)
--- a/
source/utils/smbget.c
+++ b/
source/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));