add a test shell script
add labels to be used by the legend
This commit is contained in:
parent
c6f6a110bc
commit
88b58bdce9
|
@ -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()
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
while true; do
|
||||
python test.py
|
||||
sleep 2
|
||||
done;
|
Loading…
Reference in New Issue