This commit is contained in:
millmanorama 2017-06-27 15:44:24 +02:00
parent f76b296ed2
commit e46ce6c4da
2 changed files with 11 additions and 4 deletions

View File

@ -114,14 +114,15 @@ public final class FileTypesByExtension implements AutopsyVisitableItem {
}
/**
* Should the nodes show counts?
*
* @param skCase1 the value of skCase1
* @return the boolean
*
* @return True, unless the DB has more than 200k rows.
*/
private boolean shouldShowCounts(SleuthkitCase skCase1) {
private boolean shouldShowCounts(SleuthkitCase skCase) {
if (showCounts) {
try {
if (skCase1.countFilesWhere("1") > 200000) {
if (skCase.countFilesWhere("1") > 200000) {
showCounts = false;
}
} catch (TskCoreException tskCoreException) {

View File

@ -179,6 +179,12 @@ public final class FileTypesByMimeType extends Observable implements AutopsyVisi
populateHashMap();
}
/**
* Should the nodes show counts?
*
*
* @return True, unless the DB has more than 200k rows.
*/
private boolean shouldShowCounts() {
if (showCounts) {
try {