mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-10 03:21:43 -04:00
better unique file identifier
This commit is contained in:
1 parent
d6c26c9d90
commit
b89f5a367c
1 file changed
+9
-2
@@ -36,7 +36,7 @@ impl Job for FileIdentifierJob {
|
||||
|
||||
let ctx = tokio::task::spawn_blocking(move || {
|
||||
let mut completed: usize = 0;
|
||||
let mut cursor:i32 = 0;
|
||||
let mut cursor: i32 = 1;
|
||||
|
||||
while completed < task_count {
|
||||
|
||||
@@ -74,7 +74,14 @@ impl Job for FileIdentifierJob {
|
||||
cursor = last_row.id;
|
||||
|
||||
completed += 1;
|
||||
ctx.progress(vec![JobReportUpdate::CompletedTaskCount(completed)]);
|
||||
ctx.progress(vec![
|
||||
JobReportUpdate::CompletedTaskCount(completed),
|
||||
JobReportUpdate::Message(format!(
|
||||
"Processed {} of {} orphan files",
|
||||
completed,
|
||||
task_count
|
||||
)),
|
||||
]);
|
||||
}
|
||||
ctx
|
||||
}).await?;
|
||||
|
||||
Reference in new issue
Block a user