forked from premiere/premiere-libtorrent
fix some DHT log parsing scripts
This commit is contained in:
parent
5d822706e1
commit
98d4fa3da7
|
@ -4,7 +4,7 @@ import os
|
||||||
import time
|
import time
|
||||||
import calendar
|
import calendar
|
||||||
|
|
||||||
up_time_quanta = 2000
|
up_time_quanta = 500
|
||||||
|
|
||||||
f = open(sys.argv[1])
|
f = open(sys.argv[1])
|
||||||
|
|
||||||
|
@ -160,11 +160,11 @@ replot
|
||||||
|
|
||||||
set term png size 1200,700 small
|
set term png size 1200,700 small
|
||||||
set output "dht_node_uptime_distribution.png"
|
set output "dht_node_uptime_distribution.png"
|
||||||
set xrange [*:*]
|
set xrange [0:*]
|
||||||
set title "node up time"
|
set title "node up time"
|
||||||
set ylabel "# of nodes"
|
set ylabel "# of nodes"
|
||||||
set xlabel "uptime (seconds)"
|
set xlabel "uptime (seconds)"
|
||||||
set xtics auto
|
set xtics %f
|
||||||
unset grid
|
unset grid
|
||||||
set boxwidth %f
|
set boxwidth %f
|
||||||
set style fill solid border -1 pattern 2
|
set style fill solid border -1 pattern 2
|
||||||
|
@ -175,6 +175,8 @@ set output "dht_announce_distribution.png"
|
||||||
set xrange [0:*]
|
set xrange [0:*]
|
||||||
set title "bucket # announces are made against relative to target node-id"
|
set title "bucket # announces are made against relative to target node-id"
|
||||||
set ylabel "# of announces"
|
set ylabel "# of announces"
|
||||||
|
set boxwidth 1
|
||||||
|
set xlabel "bit prefix of nodes in announces"
|
||||||
set style fill solid border -1 pattern 2
|
set style fill solid border -1 pattern 2
|
||||||
plot "dht_announce_distribution.dat" using 1:2 title "announces" with boxes
|
plot "dht_announce_distribution.dat" using 1:2 title "announces" with boxes
|
||||||
|
|
||||||
|
@ -182,7 +184,7 @@ set terminal postscript
|
||||||
set output "dht_announce_distribution.ps"
|
set output "dht_announce_distribution.ps"
|
||||||
replot
|
replot
|
||||||
|
|
||||||
''' % up_time_quanta)
|
''' % (up_time_quanta, up_time_quanta))
|
||||||
|
|
||||||
|
|
||||||
out.close()
|
out.close()
|
||||||
|
|
|
@ -35,6 +35,7 @@ set title "Message round trip times"
|
||||||
set terminal postscript
|
set terminal postscript
|
||||||
set ylabel "# of requests"
|
set ylabel "# of requests"
|
||||||
set xlabel "Round trip time (seconds)"
|
set xlabel "Round trip time (seconds)"
|
||||||
|
set xrange [0:*]
|
||||||
set grid
|
set grid
|
||||||
set style fill solid border -1 pattern 2
|
set style fill solid border -1 pattern 2
|
||||||
set output "round_trip_distribution.ps"
|
set output "round_trip_distribution.ps"
|
||||||
|
|
Loading…
Reference in New Issue