1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-24 02:37:41 +02:00

ircstat/stat: new option -a to also plot the last (partial) month

This commit is contained in:
Werner Almesberger 2012-10-28 09:37:50 -03:00
parent 8fc01a168f
commit 72db3931bd

View File

@ -3,6 +3,14 @@ Q=en.qi-hardware.com/irclogs/qi-hardware
M=en.qi-hardware.com/mmlogs/milkymist
# Saving to: `en.qi-hardware.com/irclogs/qi-hardware_2010-06-11.log.html'
all=false
case "$1" in
-a) all=true;;
"") break;;
*) echo "usage: $0 [-a]" 1>&2
exit 1;;
esac
N=3
t=
>_out
@ -30,7 +38,11 @@ for y in 10 11 12; do
done
done
src="<sed '\$d' _out"
if $all; then
src=_out
else
src="<sed '\$d' _out"
fi
gnuplot -persist <<EOF
set xtics ($t)