mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
Only update progress text every 100 files.
This commit is contained in:
parent
677e35568b
commit
9dea497218
@ -265,6 +265,7 @@ public class ReportGenerator {
|
||||
fileProgress.get(module).setMaximumProgress(numFiles);
|
||||
}
|
||||
|
||||
int i = 0;
|
||||
// Add files to report.
|
||||
for (AbstractFile file : files) {
|
||||
// Check to see if any reports have been cancelled.
|
||||
@ -279,11 +280,15 @@ public class ReportGenerator {
|
||||
if (progress.getStatus() == ReportStatus.CANCELED) {
|
||||
iter.remove();
|
||||
} else {
|
||||
progress.updateStatusLabel("Now processing " + file.getName());
|
||||
module.addRow(file, enabledInfo);
|
||||
progress.increment();
|
||||
}
|
||||
|
||||
if ((i % 100) == 0) {
|
||||
progress.updateStatusLabel("Now processing " + file.getName());
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
for (FileReportModule module : fileModules) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user