Skip to content

Commit 8f5fc6d

Browse files
author
Henry Qin
committed
Fix stats to correctly record the count of input
1 parent 848a348 commit 8f5fc6d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Stats.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ computeStatistics(uint64_t* rawdata, size_t count) {
3737
uint64_t sum = 0;
3838
for (size_t i = 0; i < count; i++)
3939
sum += rawdata[i];
40+
stats.count = count;
4041
stats.average = sum / count;
4142
stats.min = rawdata[0];
4243
stats.median = rawdata[count / 2];

0 commit comments

Comments
 (0)