projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b16feb6
)
Add fixme for ETA calculation.
author
Milan Broz
<gmazyland@gmail.com>
Mon, 17 Dec 2012 08:54:10 +0000
(09:54 +0100)
committer
Milan Broz
<gmazyland@gmail.com>
Mon, 17 Dec 2012 08:54:10 +0000
(09:54 +0100)
src/cryptsetup_reencrypt.c
patch
|
blob
|
history
diff --git
a/src/cryptsetup_reencrypt.c
b/src/cryptsetup_reencrypt.c
index
7bc039b
..
0983576
100644
(file)
--- a/
src/cryptsetup_reencrypt.c
+++ b/
src/cryptsetup_reencrypt.c
@@
-631,6
+631,7
@@
static void print_progress(struct reenc_ctx *rc, uint64_t bytes, int final)
if (!mib)
return;
+ /* FIXME: calculate this from last minute only and remaining space */
eta = (unsigned long long)(rc->device_size / 1024 / 1024 / mib - tdiff);
/* vt100 code clear line */