From 02439f6ec47a335b2a7db5e42aa32d5cd997dc6f Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Tue, 30 Jun 2015 20:49:02 -0500 Subject: [PATCH] formatting update --- pickle_stat_reader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pickle_stat_reader.py b/pickle_stat_reader.py index e6c9489..91c30ec 100644 --- a/pickle_stat_reader.py +++ b/pickle_stat_reader.py @@ -27,6 +27,7 @@ def read_dict(): def print_stats(): NETWORK = read_dict() if NETWORK != "None": + print('NETWORK STATISTICS REPORT') for ipsc in NETWORK: stat = NETWORK[ipsc]['MASTER']['STATUS'] print(ipsc) @@ -41,6 +42,7 @@ def print_stats(): 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'])) print() + print() if __name__ == '__main__': output_stats = task.LoopingCall(print_stats)