fix self-master reporting
This commit is contained in:
parent
bd251461f4
commit
b77e2a9809
@ -30,6 +30,10 @@ def print_stats():
|
|||||||
for ipsc in NETWORK:
|
for ipsc in NETWORK:
|
||||||
stat = NETWORK[ipsc]['MASTER']['STATUS']
|
stat = NETWORK[ipsc]['MASTER']['STATUS']
|
||||||
print(ipsc)
|
print(ipsc)
|
||||||
|
if (NETWORK[ipsc]['LOCAL']['MASTER_PEER']):
|
||||||
|
print(' MASTER Information:')
|
||||||
|
print(' This DMRLink IPSC Instance is the Master')
|
||||||
|
else:
|
||||||
print(' MASTER Information:')
|
print(' MASTER Information:')
|
||||||
print(' RADIO ID: {} CONNECTED: {}, KEEP ALIVES: SENT {} RECEIVED {} MISSED {}'.format(str(int_id(NETWORK[ipsc]['MASTER']['RADIO_ID'])).rjust(8,'0'),stat['CONNECTED'],stat['KEEP_ALIVES_SENT'],stat['KEEP_ALIVES_RECEIVED'],stat['KEEP_ALIVES_MISSED']))
|
print(' RADIO ID: {} CONNECTED: {}, KEEP ALIVES: SENT {} RECEIVED {} MISSED {}'.format(str(int_id(NETWORK[ipsc]['MASTER']['RADIO_ID'])).rjust(8,'0'),stat['CONNECTED'],stat['KEEP_ALIVES_SENT'],stat['KEEP_ALIVES_RECEIVED'],stat['KEEP_ALIVES_MISSED']))
|
||||||
print(' PEER Information:')
|
print(' PEER Information:')
|
||||||
|
Loading…
Reference in New Issue
Block a user