Watch 1481 spread

Created with

for i in {0001..3440}; do
wget -O $i-"$(date -u +%Y-%m-%dT%H-%M-%S)".html http://127.0.0.1:8889/strangers/
sleep 60
done

(VERSIONS="$(echo {1450..1482})"; echo index datafile $VERSIONS; for i in *.html; do for 
j in $VERSIONS; do grep -A1 peer-version $i | grep -cP '\t'$j\$ ; done | xargs echo 
$(echo $i | sed "s/-/ /") ; done) > /tmp/frac.dat

gnuplot
set xlabel "time / minutes since insert"
set ylabel "peer count / strangers"
set title "Freenet update propagation (seen from a non-updating node)"
plot for [n=25:35] '/tmp/frac.dat' u ($1):(column(n)/column(n)*column(n)) w points title columnhead(n),for [n=25:35] '/tmp/frac.dat' u ($1):(column(n)) w lines title columnhead(n)
set term png size 1024,768
set output "1481-fraction.png"
replot

Periodic site upload with

This code is horrifyingly inefficient. But it does the job.
xvfb-run bash -c '
for i in {001..360}; do
    (VERSIONS="$(echo {1450..1482})"
     echo index datafile $VERSIONS
     for i in *.html; do
         for j in $VERSIONS; do
             grep -A1 peer-version $i | grep -cP "\\t"$j\$
         done | xargs echo $(echo $i | sed "s/-/ /") ;
     done) > /tmp/frac.dat
    (cd site; gnuplot plot.gnuplot)
    sleep 300
    echo y | ~/pyFreenet/freesitemgr cancel watch-1481
    ~/pyFreenet/freesitemgr update watch-1481
done
'