X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=dograph;h=889a696c98857b00e256f133adfd4c2eef745602;hp=ba6b822ea793fa6ba1cb7ad36d30db28bfaf5e54;hb=HEAD;hpb=bded608382f38fcda99ad65d56307ca7d818a607 diff --git a/dograph b/dograph index ba6b822..935a130 100755 --- a/dograph +++ b/dograph @@ -4,25 +4,17 @@ set -e cd /org/bugs.debian.org/bugscan -tmp=`tempfile` -tmp2=`tempfile` -tmp3=`tempfile` +tempdir=`mktemp -d` find counts -type f -not -iname '*.bad'| sort | xargs grep '^' /dev/null | - sed 's/^.*count-//;s/ .*$//;s/:/ /' >"$tmp" + sed 's/^.*count-//;s/ .*$//;s/:/ /' >"$tempdir/rc_bugs_total" find counts -type f -not -iname '*.bad'| sort | xargs egrep '^(.* ){6}' /dev/null | tr ":-" " " | - cut -d" " -f2,9 >"$tmp2" + cut -d" " -f2,9 >"$tempdir/rc_bugs_next_release" find counts -type f -not -iname '*.bad'| sort | xargs egrep '^(.* ){7}' /dev/null | tr ":-" " " | - cut -d" " -f2,10 >"$tmp3" + cut -d" " -f2,10 >"$tempdir/rc_bugs_current_release" -#for i in counts/count-[0-9]* ; do -# date=`echo $i | sed -e s/.*count-//` -# count=`sed -e 's/ .*//' $i` -# echo $date $count >> ${tmp}2 -#done - -# This is the date of the wheezy release -previous_release="201305040600" +# This is the date of the bullseye release +previous_release="202108140000" # And this is a month ago previous_month=`date +"%Y%m%d%H%M" --date="1 month ago"` @@ -37,16 +29,29 @@ set terminal png set yrange [0:] #set xtics 2678400 #set nomxtics -set output "/org/bugs.debian.org/www/bugscan/graph.png" -plot "$tmp" using 1:2 with lines, "$tmp2" using 1:2 with lines, "$tmp3" using 1:2 with lines +# release critical bugs +set linetype 1 lc rgb "dark-violet" lw 1 +# RC bugs next release +set linetype 2 lc rgb "#009e73" lw 1 +# RC bugs current release +set linetype 3 lc rgb "#56b4e9" lw 1 +set linetype 4 lc rgb "#e69f00" lw 1 +set linetype 5 lc rgb "#f0e442" lw 1 +set linetype 6 lc rgb "#0072b2" lw 1 +set linetype 7 lc rgb "#e51e10" lw 1 +set linetype 8 lc rgb "black" lw 1 +set linetype 9 lc rgb "gray50" lw 1 +set linetype cycle 9 +set output "/srv/bugs.debian.org/www/bugscan/graph.png" +plot "$tempdir/rc_bugs_total" using 1:2 with lines, "$tempdir/rc_bugs_next_release" using 1:2 with lines, "$tempdir/rc_bugs_current_release" using 1:2 with lines set xrange ["$previous_release":] -set output "/org/bugs.debian.org/www/bugscan/graph-release.png" -plot "$tmp" using 1:2 with lines, "$tmp2" using 1:2 with lines, "$tmp3" using 1:2 with lines +set output "/srv/bugs.debian.org/www/bugscan/graph-release.png" +plot "$tempdir/rc_bugs_total" using 1:2 with lines, "$tempdir/rc_bugs_next_release" using 1:2 with lines, "$tempdir/rc_bugs_current_release" using 1:2 with lines set xrange ["$previous_month":] set format x "%d\n%m\n%Y" -set output "/org/bugs.debian.org/www/bugscan/graph-month.png" -plot "$tmp" using 1:2 with lines, "$tmp2" using 1:2 with lines, "$tmp3" using 1:2 with lines +set output "/srv/bugs.debian.org/www/bugscan/graph-month.png" +plot "$tempdir/rc_bugs_total" using 1:2 with lines, "$tempdir/rc_bugs_next_release" using 1:2 with lines, "$tempdir/rc_bugs_current_release" using 1:2 with lines quit EOF -rm "$tmp" "$tmp2" "$tmp3" +rm -rf "$tempdir"