diff options
author | makefu <github@syntax-fehler.de> | 2014-01-14 00:20:39 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-01-14 00:20:39 +0100 |
commit | 26308d9fd912648ae4cd08558e49c1ede9e80961 (patch) | |
tree | 4b71d926dffe7c21547579d46a369d3bcc111624 /retiolum/scripts/adv_graphgen/tinc_stats/Graph.py | |
parent | 83f27b39a2df428e5de137a02014858ae44b4f80 (diff) |
tinc_stats: remove Graphite code
Diffstat (limited to 'retiolum/scripts/adv_graphgen/tinc_stats/Graph.py')
-rw-r--r-- | retiolum/scripts/adv_graphgen/tinc_stats/Graph.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/retiolum/scripts/adv_graphgen/tinc_stats/Graph.py b/retiolum/scripts/adv_graphgen/tinc_stats/Graph.py index 18c3d545..e78b7795 100644 --- a/retiolum/scripts/adv_graphgen/tinc_stats/Graph.py +++ b/retiolum/scripts/adv_graphgen/tinc_stats/Graph.py @@ -1,6 +1,5 @@ #!/usr/bin/python from BackwardsReader import BackwardsReader -from Graphite import GraphiteSender import sys,json,os from Supernodes import check_all_the_super from Availability import get_node_availability @@ -187,11 +186,6 @@ def anonymize_nodes(nodes): if __name__ == "__main__": supernodes= [] - try: - gr = GraphiteSender(os.environ.get("GRAPHITE_HOST","localhost")) - begin = time() - except Exception as e: - sys.stderr.write( "Cannot connect to graphite: " + str(e)) if len(sys.argv) != 2 or sys.argv[1] not in ["anonymous","complete"]: print("usage: %s (anonymous|complete)") sys.exit(1) @@ -226,6 +220,3 @@ if __name__ == "__main__": print_stat_node(nodes) print ('}') - try: - gr.send("graph.anon_build_time",(time()-begin)*1000) - except Exception as e: pass |