diff --git a/plugins/rtorrent/rtom_vol b/plugins/rtorrent/rtom_vol index ced74a2b..8e9d7cc2 100755 --- a/plugins/rtorrent/rtom_vol +++ b/plugins/rtorrent/rtom_vol @@ -26,7 +26,7 @@ # socket rTorrent's rpc socket (scgi_local) - using scgi_local - needed, when "src" is set to "socket" # ip rTorrent's ip address - using scgi_port - needed, when "src" is NOT set to "socket" # port rTorrent's scgi port (scgi_port) - using scgi_port - needed, when "src" is NOT set to "socket" -# +# category Change graph category # # Configuration example # @@ -34,6 +34,7 @@ # user username # env.src socket # env.socket /home/user/torrent/.socket/rpc.socket +# env.category Sometext # # [rtom_vol] # env.ip 127.0.0.1 @@ -49,10 +50,11 @@ if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) { } if ( $ARGV[0] and $ARGV[0] eq "config" ) { + my $category = $ENV{"category"} || ""; print "graph_args --base 1000 -r --lower-limit 0\n"; print "graph_title rTorrent volume\n"; print "graph_vlabel active torrents\n"; - print "graph_category rTorrent\n"; + print "graph_category rTorrent ".${category}."\n"; print "complete.label complete\n"; print "complete.draw AREA\n"; print "complete.info complete torrents\n";