From 9fb24ff6ff73dae4a8bbef914452fd2886f969da Mon Sep 17 00:00:00 2001 From: "U-BASIS\\dsmyda" Date: Thu, 13 Sep 2018 16:16:29 -0400 Subject: [PATCH] Removed instance creation in the loop and passed the attributes themselves directly --- .../autopsy/commonfilesearch/CommonAttributeSearchResults.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributeSearchResults.java b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributeSearchResults.java index c577c573b0..76c6f5c151 100644 --- a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributeSearchResults.java +++ b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributeSearchResults.java @@ -137,9 +137,8 @@ final public class CommonAttributeSearchResults { for(CommonAttributeValue value : values.getDelayedMetadataList()){ // Need the real metadata try { - CorrelationAttributeInstance corAttr = new CorrelationAttributeInstance(fileAttributeType, value.getValue()); Double uniqueTypeValueTuples = eamDb.getCountUniqueCaseDataSourceTuplesHavingTypeValue( - corAttr.getCorrelationType(), corAttr.getCorrelationValue()).doubleValue(); + fileAttributeType, value.getValue()).doubleValue(); Double commonalityPercentage = uniqueTypeValueTuples / uniqueCaseDataSourceTuples * 100; int frequencyPercentage = commonalityPercentage.intValue();