From 113ebc8bf3d0d51a458589a361746d6061fe0c45 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Tue, 30 Jun 2015 20:53:28 -0500 Subject: [PATCH] formatting update --- pickle_stat_reader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pickle_stat_reader.py b/pickle_stat_reader.py index 91c30ec..13e7046 100644 --- a/pickle_stat_reader.py +++ b/pickle_stat_reader.py @@ -40,7 +40,10 @@ def print_stats(): print(' PEER Information:') for peer in NETWORK[ipsc]['PEERS']: stat = NETWORK[ipsc]['PEERS'][peer]['STATUS'] - 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'])) + 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() print()