mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
ingest progress bar: show more accurately which file is being ingested now
This commit is contained in:
parent
58ded3afa2
commit
c266b4fd41
@ -554,8 +554,6 @@ public class IngestManager {
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//image worker to remove itself when complete or interrupted
|
||||
void removeImageIngestWorker(IngestImageThread worker) {
|
||||
//remove worker
|
||||
@ -692,9 +690,10 @@ public class IngestManager {
|
||||
*/
|
||||
boolean hasServiceEnqueued(IngestServiceFsContent service) {
|
||||
for (List<IngestServiceFsContent> list : fsContentUnits.values()) {
|
||||
if(list.contains(service))
|
||||
if (list.contains(service)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -927,12 +926,15 @@ public class IngestManager {
|
||||
fsContentServiceResults.clear();
|
||||
}
|
||||
|
||||
final FsContent fileToProcess = unit.getKey();
|
||||
|
||||
for (IngestServiceFsContent service : unit.getValue()) {
|
||||
if (isCancelled()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final FsContent fileToProcess = unit.getKey();
|
||||
progress.progress(fileToProcess.getName(), processedFiles);
|
||||
|
||||
if ((fileToProcess.getMeta_flags() & TskData.TSK_FS_META_FLAG_ENUM.UNALLOC.getMetaFlag()) != 0) {
|
||||
//skip unallocated files, processing certain unalloc files may cause some modules to hang
|
||||
//TODO unallocated space and files are a future feature
|
||||
@ -966,7 +968,7 @@ public class IngestManager {
|
||||
progress.switchToIndeterminate();
|
||||
progress.switchToDeterminate(numFsContents);
|
||||
}
|
||||
progress.progress(unit.getKey().getName(), ++processedFiles);
|
||||
progress.progress(fileToProcess.getName(), ++processedFiles);
|
||||
--numFsContents;
|
||||
} //end of this fsContent
|
||||
logger.log(Level.INFO, "Done background processing");
|
||||
@ -1011,7 +1013,6 @@ public class IngestManager {
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void handleInterruption() {
|
||||
for (IngestServiceFsContent s : fsContentServices) {
|
||||
s.stop();
|
||||
@ -1123,9 +1124,10 @@ public class IngestManager {
|
||||
}
|
||||
progress.progress(serviceName + " " + imageName, ++processed);
|
||||
}
|
||||
if(fsContents != null)
|
||||
if (fsContents != null) {
|
||||
fsContents.clear();
|
||||
}
|
||||
}
|
||||
|
||||
//logger.log(Level.INFO, fsContentQueue.printQueue());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user