[thin_show_dups] get the progress bar working again
This commit is contained in:
parent
5d383c0293
commit
7633c5d7ae
@ -224,6 +224,7 @@ namespace {
|
||||
|
||||
block_address block_size = *fs.block_size;
|
||||
block_address nr_blocks = get_nr_blocks(fs.data_dev, *fs.block_size);
|
||||
block_address dev_size = nr_blocks * *fs.block_size;
|
||||
|
||||
cerr << "path = " << fs.data_dev << "\n";
|
||||
cerr << "nr_blocks = " << nr_blocks << "\n";
|
||||
@ -239,7 +240,8 @@ namespace {
|
||||
chunk const &c = stream.get();
|
||||
detector.examine(c);
|
||||
stream.put(c);
|
||||
// pbar->update_percent((stream.index() * 100) / stream.nr_chunks());
|
||||
|
||||
pbar->update_percent((c.offset_ * 100) / dev_size);
|
||||
|
||||
} while (stream.next());
|
||||
pbar->update_percent(100);
|
||||
|
Loading…
Reference in New Issue
Block a user