From 626cc3674b5afbce3ed3baf78439b1881895738a Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Mon, 6 Oct 2014 08:18:06 -0500 Subject: [PATCH] Messing around... --- report.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/report.py b/report.py index 7dbd7c3..1393405 100644 --- a/report.py +++ b/report.py @@ -6,10 +6,6 @@ from binascii import b2a_hex as h import cPickle as pickle -import SimpleHTTPServer -import SocketServer - - def int_id(_hex_string): return int(h(_hex_string), 16) @@ -27,11 +23,6 @@ def print_stats(_request, _client_address, _server): print(' KEEP ALIVES MISSED: ', NETWORK[ipsc]['MASTER']['STATUS']['KEEP_ALIVES_MISSED']) #pprint(NETWORK[ipsc]['MASTER']['STATUS']) -HTTP_PORT = 8080 -HTTP_handler = print_stats -httpd = SocketServer.TCPServer(('', HTTP_PORT), HTTP_handler) -httpd.serve_forever() - output_stats = task.LoopingCall(print_stats) output_stats.start(10) reactor.run() \ No newline at end of file