blob: b8114b989e70f01738cec8bf5cb86e8b450ee391 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
cat > upgradepic.gnuplot <<EOT
set title 'pacman full system upgrade'
set xlabel 'upgrade date'
set ylabel 'upgrade hour in a day'
set autoscale
#set timefmt '%Y-%m%-%d'
set xdata time
set timefmt '%Y-%m-%d'
set format x "%Y-%m'
set terminal svg size 1024,768
set output 'upgradepic.svg'
plot 'upgradepic.dat' using 1:2 notitle
EOT
echo "./upgradepic.gnuplot generated"
grep full /var/log/pacman.log | awk '{print substr($1,2), substr($2,1,2)}' \
> upgradepic.dat
echo "./upgradepic.dat generated"
gnuplot upgradepic.gnuplot
echo "./upgradepic.svg generated"
if [ -x /usr/bin/chromium ] ; then
chromium upgradepic.svg &
fi
|