2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/plugins/network/transmission_ratios/tr_ratios_data
Kenyon Ralph 85721e6446 move Transmission ratios plugin to network directory
Alongside the existing Transmission plugin.
2013-03-03 16:22:38 -08:00

11 lines
242 B
Plaintext

BEGIN { FIELDWIDTHS = "7 4 13 10 7 9 7 13 40" }
NR > 1 {
split($1,torrentid," ")
if(torrentid[1] != "Sum:") {
split($7,ratio," ")
ratio[1] = ratio[1] * 100
print "ID" torrentid[1] ".value " ratio[1]
}
}