Projet

Général

Profil

Révision e15ed8cb

IDe15ed8cb28a6f0ed8c7e000df3c34a66ab6cd89c
Parent e384c4b6
Enfant 530b61ed

Ajouté par XciD il y a presque 12 ans

Update rtom_spdd

Add Category for people who have multiple sessions

Voir les différences:

plugins/rtorrent/rtom_spdd
37 37
#	socket		rTorrent's rpc socket (scgi_local)	- using scgi_local	- needed, when "src" is set to "socket"
38 38
#	ip		rTorrent's ip address			- using scgi_port	- needed, when "src" is NOT set to "socket"
39 39
#	port		rTorrent's scgi port (scgi_port)	- using scgi_port	- needed, when "src" is NOT set to "socket"
40
#
40
#	category        Change graph category
41 41
#	diff		"yes" for using bps for upload and Bps for download, or anything else for using Bps for both
42 42
#
43 43
#
......
47 47
#	user username
48 48
#	env.src socket
49 49
#	env.socket /home/user/torrent/.socket/rpc.socket
50
#	env.category Sometext
50 51
#
51 52
#	[rtom_spdd]
52 53
#	env.ip 127.0.0.1
......
62 63

  
63 64
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
64 65
	my $diff = $ENV{"diff"} || "";
65

  
66
	my $category = $ENV{"category"} || "";
66 67
	print "graph_order down up\n";
67 68
	print "graph_title rTorrent speeds\n";
68 69
	print "graph_args --base 1024\n";
69 70
	print "graph_vlabel Bytes per \${graph_period}\n";
70
	print "graph_category rTorrent\n";
71
	print "graph_category rTorrent ".${category}."\n";
71 72
	print "down.label Download B/s\n";
72 73
	print "down.info Download speed in Bytes per seconds\n";
73 74
	print "down.type DERIVE\n";

Formats disponibles : Unified diff