Skip to content

Commit 3f59336

Browse files
committed
[roc-pkt-monitor] Fix endpoint bug in total packets per sec
1 parent fa8db98 commit 3f59336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommandLineUtilities/ProgramMetrics.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class ProgramMetrics : public Program
9494
int32_t dropped = bar2->getDroppedPackets(bar0->getEndpointNumber());
9595
float ctpClock = bar2->getCTPClock() / 1e6;
9696
float localClock = bar2->getLocalClock() / 1e6;
97-
uint32_t totalPacketsPerSecond = bar2->getTotalPacketsPerSecond(0);
97+
uint32_t totalPacketsPerSecond = bar2->getTotalPacketsPerSecond(bar0->getEndpointNumber());
9898

9999
if (mOptions.monitoring) {
100100
monitoring->send(Metric{ "card" }

0 commit comments

Comments
 (0)