mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-06 01:06:20 +00:00
Removed instance creation in the loop and passed the attributes themselves directly
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user