add a test shell script

add labels to be used by the legend
This commit is contained in:
Damien Churchill 2008-10-14 09:02:09 +00:00
parent c6f6a110bc
commit 88b58bdce9
2 changed files with 8 additions and 2 deletions

View File

@ -61,8 +61,8 @@ class GraphsTab(Tab):
def bandwidth_expose(self, widget, event):
self.graph_widget = self.bandwidth_graph
self.graph = graph.Graph()
self.graph.add_stat('download_rate', color=graph.green)
self.graph.add_stat('upload_rate', color=graph.blue)
self.graph.add_stat('download_rate', label='Download Rate', color=graph.green)
self.graph.add_stat('upload_rate', label='Upload Rate', color=graph.blue)
self.graph.set_left_axis(formatter=fspeed, min=10240)
self.update_timer = gobject.timeout_add(2000, self.update_graph)
self.update_graph()

View File

@ -0,0 +1,6 @@
#!/bin/sh
while true; do
python test.py
sleep 2
done;