X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=blobdiff_plain;f=dograph;h=00be2d3b33d74f90c8fcc54f94ce4bc48b6d1a3b;hp=182cb8555023d002e94192fe8e530a47a33e1024;hb=0a8a6839c3fbeb4a67a4e43704861c3af8b35214;hpb=d5a0b74a3ddd8ad47fb594e890dfd0f454627655 diff --git a/dograph b/dograph index 182cb85..00be2d3 100755 --- a/dograph +++ b/dograph @@ -6,12 +6,14 @@ cd /org/bugs.debian.org/bugscan tmp=`tempfile` tmp2=`tempfile` +tmp3=`tempfile` find counts -type f | sort | xargs grep '^' /dev/null | sed 's/^.*count-//;s/ .*$//;s/:/ /' >"$tmp" -find counts -type f | sort | xargs egrep '^(.* ){6}' /dev/null | - sed 's/^.*count-//;s/:.* / /;' >"$tmp2" - +find counts -type f | sort | xargs egrep '^(.* ){6}' /dev/null | tr ":-" " " | + cut -d" " -f2,9 >"$tmp2" +find counts -type f | sort | xargs egrep '^(.* ){7}' /dev/null | tr ":-" " " | + cut -d" " -f2,10 >"$tmp3" #for i in counts/count-[0-9]* ; do # date=`echo $i | sed -e s/.*count-//` @@ -30,8 +32,8 @@ 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 +plot "$tmp" using 1:2 with lines, "$tmp2" using 1:2 with lines, "$tmp3" using 1:2 with lines quit EOF -rm "$tmp" "$tmp2" +rm "$tmp" "$tmp2" "$tmp3"