Skip to content

Commit 688a04f

Browse files
authored
Merged Pull Request '#54 fix/performance-example->main: FIX: performance example reporting DetectionsPerSecond'
1 parent e7c772f commit 688a04f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dd/performance/performance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func printReport(actR *report, logOutputPath string) string {
222222
msPerRecord := float64(actR.processingTime) / float64(actR.evidenceCount)
223223
_, err = fmt.Fprintf(w, "Average %.5f ms per Evidence Record\n", msPerRecord)
224224
checkWriteError(err)
225-
detectionsPerSecond := float64(actR.evidenceCount) / float64(actR.processingTime)
225+
detectionsPerSecond := float64(actR.evidenceCount) * 1000 / float64(actR.processingTime)
226226
_, err = fmt.Fprintf(w, "Average %.2f detections per second\n", detectionsPerSecond)
227227
checkWriteError(err)
228228
_, err = fmt.Fprintf(w, "Total Evidence Records: %d\n", actR.evidenceCount)

0 commit comments

Comments
 (0)