src/backup/chunk_store.rs: additionally log chunk count
This commit is contained in:
parent
9850bcdf19
commit
e4c2fbf170
@ -289,10 +289,12 @@ impl ChunkStore {
|
||||
min_atime -= 300; // add 5 mins gap for safety
|
||||
|
||||
let mut last_percentage = 0;
|
||||
let mut chunk_count = 0;
|
||||
|
||||
for (entry, percentage) in self.get_chunk_iterator()? {
|
||||
if last_percentage != percentage {
|
||||
last_percentage = percentage;
|
||||
worker.log(format!("percentage done: {}", percentage));
|
||||
worker.log(format!("percentage done: {}, chunk count: {}", percentage, chunk_count));
|
||||
}
|
||||
|
||||
tools::fail_on_shutdown()?;
|
||||
@ -310,6 +312,8 @@ impl ChunkStore {
|
||||
continue;
|
||||
}
|
||||
|
||||
chunk_count += 1;
|
||||
|
||||
let filename = entry.file_name();
|
||||
|
||||
let lock = self.mutex.lock();
|
||||
|
Loading…
Reference in New Issue
Block a user