Merge "Fix bug in stats_event_benchmark" am: 3bf8858105 am: ae9375f13e am: 759c6ff425
Change-Id: I9446a60a7aa33d913d92b13f60690f5b7f903790
This commit is contained in:
commit
a8cdcadbd2
1 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,8 @@ static struct stats_event* constructStatsEvent() {
|
|||
stats_event_set_atom_id(event, 100);
|
||||
|
||||
// randomly sample atom size
|
||||
for (int i = 0; i < rand() % 800; i++) {
|
||||
int numElements = rand() % 800;
|
||||
for (int i = 0; i < numElements; i++) {
|
||||
stats_event_write_int32(event, i);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue