Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Addisu Z. Taddese <addisuzt@intrinsic.ai>
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
  • Loading branch information
bperseghetti and azeey committed Jun 17, 2024
1 parent ef47f50 commit 62c059c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cmd/gz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ extern "C" void cmdTopicFrequency(const char *_topic)
duration<int64_t, std::nano> duration = now.time_since_epoch();
time_array[count] = duration.count();
}
if (count == 11)
if (count == 11)
{
for (int i = 0; i < 10; ++i)
{
Expand Down Expand Up @@ -416,7 +416,8 @@ extern "C" void cmdTopicFrequency(const char *_topic)
}
}

for(int i = 0; i < 10; ++i) {
for (int i = 0; i < 10; ++i)
{
sum += interval_array[i];
}

Expand Down

0 comments on commit 62c059c

Please sign in to comment.