Skip to content

Commit 877e493

Browse files
committed
[pkt-monitor] Cast CRORC packets received to uint64_t for monitoring
1 parent 336d5ee commit 877e493

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,11 @@ To directly send metrics to the Alice O2 Monitoring library, the argument `--mon
453453
454454
###### Metric: `"link"`
455455
456-
| Value name | Value | Type |
457-
| ----------------------- | ------ | ------ |
458-
| `"pciAddress"` | - | string |
459-
| `"acquisitionRate"` | - | int |
460-
| `"packetsReceived"` | - | int |
456+
| Value name | Value | Type |
457+
| ----------------------- | ------ | -------- |
458+
| `"pciAddress"` | - | string |
459+
| `"acquisitionRate"` | - | int |
460+
| `"packetsReceived"` | - | uint64_t |
461461
462462
| Tag key | Value |
463463
| --------------------- | --------------------- |

src/CommandLineUtilities/ProgramPacketMonitor.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class ProgramPacketMonitor : public Program
104104
monitoring->send(Metric{ "link" }
105105
.addValue(card.pciAddress.toString(), "pciAddress")
106106
.addValue((int)acquisitionRate, "acquisitionRate")
107-
.addValue((int)packetsReceived, "packetsReceived")
107+
.addValue((uint64_t)packetsReceived, "packetsReceived")
108108
.addTag(tags::Key::SerialId, card.serialId.getSerial())
109109
.addTag(tags::Key::CRORC, card.sequenceId)
110110
.addTag(tags::Key::ID, channel)

0 commit comments

Comments
 (0)