mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-25 00:35:02 -04:00
better unique file identifier
This commit is contained in:
@@ -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