formatting update
This commit is contained in:
parent
02439f6ec4
commit
113ebc8bf3
@ -40,6 +40,9 @@ def print_stats():
|
|||||||
print(' PEER Information:')
|
print(' PEER Information:')
|
||||||
for peer in NETWORK[ipsc]['PEERS']:
|
for peer in NETWORK[ipsc]['PEERS']:
|
||||||
stat = NETWORK[ipsc]['PEERS'][peer]['STATUS']
|
stat = NETWORK[ipsc]['PEERS'][peer]['STATUS']
|
||||||
|
if peer == NETWORK[ipsc]['LOCAL']['RADIO_ID']:
|
||||||
|
print(' RADIO ID: {} Is this instance'.format(str(int_id(peer)).rjust(8,'0')))
|
||||||
|
else:
|
||||||
print(' RADIO ID: {} CONNECTED: {}, KEEP ALIVES: SENT {} RECEIVED {} MISSED {}'.format(str(int_id(peer)).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(peer)).rjust(8,'0'),stat['CONNECTED'],stat['KEEP_ALIVES_SENT'],stat['KEEP_ALIVES_RECEIVED'],stat['KEEP_ALIVES_MISSED']))
|
||||||
print()
|
print()
|
||||||
print()
|
print()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user