@@ -224,15 +224,14 @@ class ProgramStatus : public Program
224224 std::cout << " CRU ID: " << reportInfo.cruId << std::endl;
225225 std::cout << clock << " clock | " ;
226226 std::cout << offset << " offset" << std::endl;
227- if (reportInfo.userLogicEnabled ) {
227+ if (reportInfo.userLogicEnabled && reportInfo.userAndCommonLogicEnabled ) {
228+ std::cout << " User and Common Logic enabled" << std::endl;
229+ } else if (reportInfo.userLogicEnabled ) {
228230 std::cout << " User Logic enabled" << std::endl;
229231 }
230232 if (reportInfo.runStatsEnabled ) {
231233 std::cout << " Run statistics enabled" << std::endl;
232234 }
233- if (reportInfo.userAndCommonLogicEnabled ) {
234- std::cout << " User and Common logic enabled" << std::endl;
235- }
236235 }
237236
238237 /* ONU PARAMETERS */
@@ -241,15 +240,15 @@ class ProgramStatus : public Program
241240
242241 if (mOptions .monitoring ) {
243242 monitoring->send (Metric{ " onu" }
244- .addValue (std::to_string (onuStatus.onuAddress ), " onuAddress" )
245- .addValue (onuStatus.rx40Locked , " rx40Locked" )
246- .addValue (onuStatus.phaseGood , " phaseGood" )
247- .addValue (onuStatus.rxLocked , " rxLocked" )
248- .addValue (onuStatus.operational , " operational" )
249- .addValue (onuStatus.mgtTxReady , " mgtTxReady" )
250- .addValue (onuStatus.mgtRxReady , " mgtRxReady" )
251- .addValue (onuStatus.mgtTxPllLocked , " mgtTxPllLocked" )
252- .addValue (onuStatus.mgtRxPllLocked , " mgtRxPllLocked" ));
243+ .addValue (std::to_string (onuStatus.onuAddress ), " onuAddress" )
244+ .addValue (onuStatus.rx40Locked , " rx40Locked" )
245+ .addValue (onuStatus.phaseGood , " phaseGood" )
246+ .addValue (onuStatus.rxLocked , " rxLocked" )
247+ .addValue (onuStatus.operational , " operational" )
248+ .addValue (onuStatus.mgtTxReady , " mgtTxReady" )
249+ .addValue (onuStatus.mgtRxReady , " mgtRxReady" )
250+ .addValue (onuStatus.mgtTxPllLocked , " mgtTxPllLocked" )
251+ .addValue (onuStatus.mgtRxPllLocked , " mgtRxPllLocked" ));
253252 } else if (mOptions .jsonOut ) {
254253 root.put (" ONU address" , onuStatus.onuAddress );
255254 root.put (" ONU RX40 locked" , onuStatus.rx40Locked );
@@ -275,8 +274,6 @@ class ProgramStatus : public Program
275274 }
276275 }
277276
278-
279-
280277 /* PARAMETERS PER LINK */
281278 for (const auto & el : reportInfo.linkMap ) {
282279 auto link = el.second ;
0 commit comments