6,534
edits
Changes
added graph source code
== Description ==
This graph shows how many patches from OpenVZ developers are merged in mainstream, for each kernel version.
It is done in gnuplot. Data set produced by a simple shell script working on git repository. == Source code == === Collect data ===Here is the scriptto produce the data for the graph:
<small><source lang="bash">
done | sed 's/ /\t/g'
</source></small>
=== Draw the graph ===
Here is the script to produce the graph. Note it calls the previous script under the name 'count'.
<small><source lang="bash">
#!/bin/sh
if test "$1" != "-f"; then
git pull
sh count > time.dat
fi
DATE=$(date '+%d %b %Y')
MAXY=$(awk 'BEGIN {max=0}; ($3 > max) {max=$3}; END {print max+50}' < time.dat)
export GDFONTPATH=/usr/share/fonts/msttcorefonts/
cat << EOF | gnuplot > plot.png
set terminal png transparent nocrop enhanced font verdanab 8 size 600,400
set title "OpenVZ team kernel patches progress as of ${DATE}"
set xlabel "Date"
set xdata time
set timefmt "%b-%d-%Y"
set format x "%b\n%Y"
set yrange [ 0 : ${MAXY}]
set ylabel "Number of patches accepted into mainstream"
plot 'time.dat' using 1:3 with linespoints pt 7 ps 1.5 lw 2 lt 2 notitle, \
'' using 1:3:2 with labels left offset 0,1 rotate notitle, \
'' using 1:3:3 with labels left offset 0.7,0 notitle
EOF
</source></small>