Skip to content

Commit 5706eb1

Browse files
authored
↪️ Merge pull request Yelp#251 from OiCMudkips/fix_signal_calculation
Fix signal metric calculation in audit
2 parents b21c5f8 + 8c4d00a commit 5706eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detect_secrets/core/audit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def determine_audit_results(baseline, baseline_path):
292292
total += 1
293293
audit_results['stats']['signal'] = str(
294294
(
295-
audit_results['stats']['true-positives']['count']
295+
float(audit_results['stats']['true-positives']['count'])
296296
/
297297
total
298298
) * 100,

0 commit comments

Comments
 (0)