Skip to content

Commit 71250a9

Browse files
committed
Merge branch 'pr/bench' of https://github.com/mkj/mctp
Signed-off-by: Jeremy Kerr <[email protected]>
2 parents e778654 + 49db952 commit 71250a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mctp-bench.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static const size_t MAX_LEN = 64 * 1024 - 1;
5151
static const uint32_t SEQ_START = UINT32_MAX - 5;
5252
static const uint16_t MAGIC_VAL = 0xbeca;
5353
static const int DEFAULT_NET = MCTP_NET_ANY;
54-
static const int DEFAULT_SECONDS_INTERVAL = 10;
54+
static const int DEFAULT_SECONDS_INTERVAL = 2;
5555

5656
static float get_throughput(float total_len, float elapsed_time)
5757
{
@@ -62,7 +62,7 @@ static void print_stats(struct recv_ctx *recv_ctx)
6262
{
6363
float throughput = get_throughput(recv_ctx->stats.total_received_len,
6464
recv_ctx->stats.elapsed_time);
65-
printf("Throughput: %.2f kB/s | Recevied: %lu msgs | "
65+
printf("Throughput: %.2f kB/s | Received: %lu msgs | "
6666
"Dropped: %lu msgs | "
6767
"Invalid: %lu msgs\n",
6868
throughput, recv_ctx->stats.msg_count,

0 commit comments

Comments
 (0)