Skip to content

Commit

Permalink
ugly progress bar
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Bruyelles <git@jack.fr.eu.org>
  • Loading branch information
JackSlateur committed Nov 24, 2023
1 parent acd881b commit d3ebdeb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions file_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,7 @@ static void csum_whole_file(struct file_to_scan *file)
* until we reach the expected EOF, based on the expected filesize
*/
while (ctxt.off < ctxt.filesize) {
printf("%s: %05.2f%% bytes processed\n", file->path, 100 * (double)ctxt.off / (double)ctxt.filesize);
/* In the buffer, how much bytes are processed as blocks
* Extents processing and file processing will not consumme
* more than that amount of bytes
Expand Down

0 comments on commit d3ebdeb

Please sign in to comment.