Skip to content

Commit

Permalink
Adjust z_sub_thr output
Browse files Browse the repository at this point in the history
  • Loading branch information
oteffahi committed Feb 29, 2024
1 parent 8739ccc commit 5a23c84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/unix/c11/z_sub_thr.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ void on_sample(const z_sample_t *sample, void *context) {
// Stop set measurement
stats->finished_rounds++;
unsigned long elapsed_ms = zp_clock_elapsed_ms(&stats->start);
printf("Received %d msg in %lu ms (%.1f msg/s)\n", PACKET_NB, elapsed_ms,
(double)(PACKET_NB * 1000) / (double)elapsed_ms);
printf("%f msg/s\n", (double)(PACKET_NB * 1000) / (double)elapsed_ms);
stats->count = 0;
}
}
Expand Down

0 comments on commit 5a23c84

Please sign in to comment.