mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +00:00
add a test shell script
add labels to be used by the legend
This commit is contained in:
parent
c6f6a110bc
commit
88b58bdce9
2 changed files with 8 additions and 2 deletions
|
@ -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()
|
||||
|
|
6
deluge/plugins/stats/stats/test.sh
Normal file
6
deluge/plugins/stats/stats/test.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
while true; do
|
||||
python test.py
|
||||
sleep 2
|
||||
done;
|
Loading…
Add table
Reference in a new issue