mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 02:11:59 +01:00
Fixed reindex percent calculation
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
4ebf76e405
commit
03c22264ea
@ -135,8 +135,7 @@ uint64 retrieve_email_by_metadata_id(struct session_data *sdata, struct data *da
|
|||||||
unlink(filename);
|
unlink(filename);
|
||||||
|
|
||||||
if(progressbar){
|
if(progressbar){
|
||||||
uint64 delta = to_id - from_id;
|
uint64 delta = to_id - from_id + 1;
|
||||||
if(delta == 0) delta = 1;
|
|
||||||
|
|
||||||
printf("processed: %8llu [%3d%%]\r", reindexed, (int)(100*reindexed/delta));
|
printf("processed: %8llu [%3d%%]\r", reindexed, (int)(100*reindexed/delta));
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
Loading…
Reference in New Issue
Block a user