Fix Klocwork scan issues.

This commit is contained in:
Chang, Harry
2020-12-27 12:04:55 +00:00
committed by Konstantinos Margaritis
parent 18f6aee5c2
commit 52f658ac55
4 changed files with 6 additions and 5 deletions

View File

@@ -877,6 +877,7 @@ void displayCsvResults(const vector<unique_ptr<ThreadContext>> &threads,
printf(",\"%0.3f\"", totalSecs);
printf(",\"%0.2Lf\"", calc_mbps(totalSecs, totalBytes));
assert(bytesPerRun);
double matchRate = ((double)matchesPerRun * 1024) / bytesPerRun;
printf(",\"%llu\"", matchesPerRun);
printf(",\"%0.3f\"", matchRate);