From 88b58bdce90e5d32aead03d24245213081814098 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 14 Oct 2008 09:02:09 +0000 Subject: [PATCH] add a test shell script add labels to be used by the legend --- deluge/plugins/stats/stats/gtkui.py | 4 ++-- deluge/plugins/stats/stats/test.sh | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 deluge/plugins/stats/stats/test.sh diff --git a/deluge/plugins/stats/stats/gtkui.py b/deluge/plugins/stats/stats/gtkui.py index 70f7e2977..16feada14 100644 --- a/deluge/plugins/stats/stats/gtkui.py +++ b/deluge/plugins/stats/stats/gtkui.py @@ -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() diff --git a/deluge/plugins/stats/stats/test.sh b/deluge/plugins/stats/stats/test.sh new file mode 100644 index 000000000..937c39b5e --- /dev/null +++ b/deluge/plugins/stats/stats/test.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +while true; do + python test.py + sleep 2 +done;