Skip to content

Commit 28f4e44

Browse files
committed
[status] Report TF length for CRU
1 parent 70c2635 commit 28f4e44

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ metric format for the CRORC and the CRU is different, as different parameters ar
577577
| `"userLogic"` | 0/1 (Disabled/Enabled) | int |
578578
| `"runStats"` | 0/1 (Disabled/Enabled) | int |
579579
| `"commonAndUserLogic"` | 0/1 (Disabled/Enabled) | int |
580+
| `"timeFrameLength"` | - | int |
580581
581582
| Tag key | Value |
582583
| --------------------- | --------------------- |

src/CommandLineUtilities/ProgramStatus.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ class ProgramStatus : public Program
208208
.addValue(reportInfo.userLogicEnabled, "userLogic")
209209
.addValue(reportInfo.runStatsEnabled, "runStats")
210210
.addValue(reportInfo.userAndCommonLogicEnabled, "userAndCommonLogic")
211+
.addValue(reportInfo.timeFrameLength, "timeFrameLength")
211212
.addTag(tags::Key::SerialId, card.serialId.getSerial())
212213
.addTag(tags::Key::Endpoint, card.serialId.getEndpoint())
213214
.addTag(tags::Key::ID, card.sequenceId)
@@ -222,11 +223,13 @@ class ProgramStatus : public Program
222223
root.put("userLogic", userLogic);
223224
root.put("runStats", runStats);
224225
root.put("userAndCommonLogic", userAndCommonLogic);
226+
root.put("timeFrameLength", reportInfo.timeFrameLength);
225227
} else {
226228
std::cout << "-----------------------------" << std::endl;
227229
std::cout << "CRU ID: " << reportInfo.cruId << std::endl;
228230
std::cout << clock << " clock | ";
229231
std::cout << offset << " offset" << std::endl;
232+
std::cout << "Timeframe length: " << (int)reportInfo.timeFrameLength << std::endl;
230233
if (reportInfo.userLogicEnabled && reportInfo.userAndCommonLogicEnabled) {
231234
std::cout << "User and Common Logic enabled" << std::endl;
232235
} else if (reportInfo.userLogicEnabled) {

0 commit comments

Comments
 (0)