forked from premiere/premiere-libtorrent
add num_list_peers to session_stats parser script
This commit is contained in:
parent
6c03035aa0
commit
126f8db863
|
@ -14,7 +14,7 @@ while not 'second:' in line:
|
||||||
|
|
||||||
keys = line.strip().split(':')[1:]
|
keys = line.strip().split(':')[1:]
|
||||||
|
|
||||||
axes = ['x1y2', 'x1y2', 'x1y1', 'x1y1', 'x1y1', 'x1y1', 'x1y1', 'x1y1']
|
axes = ['x1y2', 'x1y2', 'x1y1', 'x1y1', 'x1y1', 'x1y1', 'x1y1', 'x1y1', 'x1y2']
|
||||||
|
|
||||||
def gen_report(name, lines):
|
def gen_report(name, lines):
|
||||||
out = open('session_stats_%s.gnuplot' % name, 'wb')
|
out = open('session_stats_%s.gnuplot' % name, 'wb')
|
||||||
|
@ -41,6 +41,6 @@ def gen_report(name, lines):
|
||||||
os.system('gnuplot session_stats_%s.gnuplot' % name);
|
os.system('gnuplot session_stats_%s.gnuplot' % name);
|
||||||
|
|
||||||
gen_report('rates', ['upload rate', 'download rate', 'downloading torrents', 'seeding torrents', 'peers', 'unchoked peers'])
|
gen_report('rates', ['upload rate', 'download rate', 'downloading torrents', 'seeding torrents', 'peers', 'unchoked peers'])
|
||||||
gen_report('peers', ['peers', 'connecting peers', 'unchoked peers'])
|
gen_report('peers', ['peers', 'connecting peers', 'unchoked peers', 'num list peers'])
|
||||||
gen_report('buffers', ['upload rate', 'download rate', 'disk block buffers'])
|
gen_report('buffers', ['upload rate', 'download rate', 'disk block buffers'])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue