From 6ca9f65af962b01d905a37ab5c32e604e7ea4f96 Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Thu, 10 Oct 2019 12:17:33 +1100 Subject: [PATCH] [transmission] Show counts as stacked areas Signed-off-by: Olivier Mehani --- plugins/network/transmission | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/plugins/network/transmission b/plugins/network/transmission index ea3d15ad..f82092b5 100755 --- a/plugins/network/transmission +++ b/plugins/network/transmission @@ -95,13 +95,13 @@ graph_category network graph_info This graph shows the throughput for Transmission torrents down.label throughput down.type COUNTER -down.draw LINE1 +down.draw AREA down.min 0 down.graph no -up.label sent +up.label Bps up.negative down up.type COUNTER -up.draw LINE1 +up.draw AREA up.min 0 multigraph ${plugin_name}_activity @@ -110,16 +110,12 @@ graph_vlabel torrents graph_args --base 1000 graph_category network graph_info This graph shows the number of Transmission torrents -total.label total -total.draw AREA -total.min 0 -total.colour AFE3FF active.label active active.draw AREA active.min 0 active.colour 77FF6F paused.label paused -paused.draw LINE1 +paused.draw STACK paused.min 0 paused.colour 8F8F8F """) @@ -152,11 +148,6 @@ def fetch(): def print_values_activity(stats): print "multigraph {plugin_name}_activity".format(plugin_name=plugin_name) - try: - print "total.value %s" % stats.torrentCount - except: - print "total.value U" - try: print "active.value %s" % stats.activeTorrentCount except: