Skip to content

Commit

Permalink
Fix bug in calculation of computed sample size
Browse files Browse the repository at this point in the history
Means calculated as part of standard deviation were ommitted from the
calculation
  • Loading branch information
Araneidae committed May 3, 2022
1 parent a6efe3f commit 406f13d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ size_t get_binary_sample_length(
sizeof(uint32_t) * capture->unscaled.count +
sizeof(double) * (
capture->scaled32.count + capture->scaled64.count +
capture->averaged.count + capture->std_dev.count);
capture->averaged.count + capture->std_dev.count +
capture->std_dev_mean_count);
ASSERT_OK(length > 0);
return length;
}
Expand Down

0 comments on commit 406f13d

Please sign in to comment.