diff --git a/tools/prstats/eval.tcl b/tools/prstats/eval.tcl index 76e6be55e2..9f0ca8fc41 100755 --- a/tools/prstats/eval.tcl +++ b/tools/prstats/eval.tcl @@ -1,33 +1,33 @@ #!/usr/local/bin/tclsh8.3 # -# $FreeBSD$ +# $FreeBSD: www/tools/prstats/eval.tcl,v 1.1 2001/10/29 01:58:12 murray Exp $ # set fi [open "|sort -n _"] set fo [open "__" w] -set v {open feedback analyzed suspended closed } +set v {open feedback analyzed suspended patched closed } foreach i $v { set $i 0 } set m 0 while {[gets $fi a] >= 0} { if {![regexp {^[0-9]*$} [lindex $a 1]]} { puts "Bogus: $a" continue } if {[catch {eval [string tolower [lindex $a 2]]}]} { puts $a } if {[lindex $a 1] > $m} { set m [lindex $a 1].0 } puts -nonewline $fo [clock format [lindex $a 0] -format "%Y/%m/%d %H:%M" -gmt true] puts -nonewline $fo " [lindex $a 0]" foreach i $v { set j [set $i] #puts -nonewline $fo " [expr $j / $m]" puts -nonewline $fo " $j" } puts $fo "" } diff --git a/tools/prstats/g b/tools/prstats/g index da4f3ecffa..6306a5d9e7 100644 --- a/tools/prstats/g +++ b/tools/prstats/g @@ -1,56 +1,61 @@ -# $FreeBSD$ +# $FreeBSD: www/tools/prstats/g,v 1.1 2001/10/29 01:58:12 murray Exp $ # set term png small color set xdata time set timefmt "%Y/%m/%d %H:%M" set data style line set grid set key left set output "gnats.png" set format x "%Y" plot '__' using 1:4 title "open", \ '__' using 1:5 title "feedback", \ '__' using 1:6 title "analyzed" , \ - '__' using 1:7 title "suspended" + '__' using 1:7 title "suspended", \ + '__' using 1:8 title "patched" set output "gnats1.png" set format x "%H:%M" plot '__1' using 1:4 title "open" with linespo, \ '__1' using 1:5 title "feedback", \ '__1' using 1:6 title "analyzed" , \ - '__1' using 1:7 title "suspended" + '__1' using 1:7 title "suspended", \ + '__1' using 1:8 title "patched" set output "gnats1r.png" plot '__1' using 1:4 title "open" with linespo set output "gnats7.png" set format x "%m/%d" plot '__7' using 1:4 title "open", \ '__7' using 1:5 title "feedback", \ '__7' using 1:6 title "analyzed" , \ - '__7' using 1:7 title "suspended" + '__7' using 1:7 title "suspended", \ + '__7' using 1:8 title "patched" set output "gnats7r.png" plot '__7' using 1:4 title "open" set output "gnats30.png" set format x "%Y/%m/%d" plot '__30' using 1:4 title "open", \ '__30' using 1:5 title "feedback", \ '__30' using 1:6 title "analyzed" , \ - '__30' using 1:7 title "suspended" + '__30' using 1:7 title "suspended", \ + '__30' using 1:8 title "patched" set output "gnats30r.png" plot '__30' using 1:4 title "open" set output "gnats365.png" set format x "%Y/%m/%d" plot '__365' using 1:4 title "open", \ '__365' using 1:5 title "feedback", \ '__365' using 1:6 title "analyzed" , \ - '__365' using 1:7 title "suspended" + '__365' using 1:7 title "suspended", \ + '__365' using 1:8 title "patched" set output "gnats365r.png" plot '__365' using 1:4 title "open"