Skip to content

Commit

Permalink
Change status message
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Dec 20, 2024
1 parent 0c04f72 commit 94c4d3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userland/examples_zc/zbalance_ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ void print_stats() {
trace(TRACE_INFO, " Balancer %2u Queue %2u: RX %lu pkts Dropped %lu pkts (%.1f %%) %s\n",
b, i, stats.recv, stats.drop,
stats.recv == 0 ? 0 : ((double)(stats.drop*100)/(double)(stats.recv + stats.drop)),
in_use == 1 ? "Locked" : (in_use == 0 ? "Not-in-use" : ""));
in_use == 1 ? "In-Use" : (in_use == 0 ? "Not-In-Use" : ""));
}
if (outdevs[i]) {
snprintf(&stats_buf[strlen(stats_buf)], sizeof(stats_buf)-strlen(stats_buf),
Expand All @@ -415,7 +415,7 @@ void print_stats() {
}
if (in_use != -1)
snprintf(&stats_buf[strlen(stats_buf)], sizeof(stats_buf)-strlen(stats_buf),
"Q%uLocked: %s\n", i, in_use ? "Yes" : "No");
"Q%uStatus: %s\n", i, in_use ? "In-Use" : "Not-In-Use");
}
}
}
Expand Down

0 comments on commit 94c4d3b

Please sign in to comment.