1 arch <- c("amd64", "armel", "armhf", "hurd-i386", "i386", "ia64",
2 "kfreebsd-amd64", "kfreebsd-i386", "mips", "mipsel", "powerpc",
3 "s390", "s390x", "sparc")
4 palette(c("black", "turquoise", "red", "OrangeRed", "green3", "cyan",
5 "blue", "yellow", "magenta",
6 "violetred2","thistle4", "steelblue2", "springgreen4",
9 readdata <- function (file,start) {
10 t <- read.table(file,row.names=1,header=FALSE,
11 sep=",",col.names=c("date","alpha","at","arm","art","hppa","ht","hurd-i386",
12 "hit","i386","it","ia64","i6t","m68k","mt","mips","mit","mipsel","mipt",
13 "powerpc","pt","s390","st","amd64","amdt","sparc","spt","armel","aret",
14 "kfreebsd-amd64", "kfreebsd-amd64-t", "kfreebsd-i386", "kfreebsd-i386-t",
15 "armhf", "armhf-t", "s390x", "s390x-t"))
16 ts(as.matrix(data.frame(
17 t[23]/t[24]*100, #amd64
18 t[27]/t[28]*100, #armel
19 t[7]/t[8]*100, #hurd-i386
21 t[11]/t[12]*100, #ia64
22 t[29]/t[30]*100, #kfreebsd-amd64
23 t[31]/t[32]*100, #kfreebsd-i386
24 t[15]/t[16]*100, #mips
25 t[17]/t[18]*100, #mipsel
26 t[19]/t[20]*100, #powerpc
27 t[21]/t[22]*100, #s390
28 t[25]/t[26]*100 #sparc
29 t[33]/t[34]*100, #armhf
30 t[35]/t[36]*100, #s390x
31 )),c(2001,start),frequency=365.25)
34 plotwb <- function (file,title,p,linept=85,height=7.5,width=10,pch=1:18) {
35 bitmap(file=file,type="png16m",width=width,height=height,res=64)
36 layout(matrix(c(1,1,2,2),2,2),widths=c(0.85,0.15))
37 par(mar=c(5,4,4,2)+0.1)
39 plot(p,type="o",plot.type="single",col=1:18,pch=pch,xlab="date",
40 ylab="percentage of packages",main=title,cex=2)
41 abline(h=90,lty=2,col=3)
42 abline(h=linept,lty=2,col=3)
46 legend(-1.2,1, arch, col=1:18, pch=pch, lwd=2, bg='gray90', cex=1.5)
48 v <- readdata("/org/wanna-build/etc/graph-data",164)
49 plotwb("/org/buildd.debian.org/web/stats/graph.png","What percent is built for each architecture",v,85,7.5,10,".")
50 plotwb("/org/buildd.debian.org/web/stats/graph-big.png","What percent is built for each architecture",v,85,15,20,".")
51 plotwb("/org/buildd.debian.org/web/stats/graph-week.png","What percent is built for each architecture (past two weeks)",window(v,start=time(v)[length(time(v))-14]),85)
52 plotwb("/org/buildd.debian.org/web/stats/graph-week-big.png","What percent is built for each architecture (past two weeks)",window(v,start=time(v)[length(time(v))-14]),85,15,20)
53 plotwb("/org/buildd.debian.org/web/stats/graph-quarter.png","What percent is built for each architecture (past quarter)",window(v,start=time(v)[length(time(v))-90]),85)
54 plotwb("/org/buildd.debian.org/web/stats/graph-quarter-big.png","What percent is built for each architecture (past quarter)",window(v,start=time(v)[length(time(v))-90]),85,15,20)
55 v <- readdata("/org/wanna-build/etc/graph2-data",279)
56 plotwb("/org/buildd.debian.org/web/stats/graph2.png","How architectures are keeping up",v,95,7.5,10,".")
57 plotwb("/org/buildd.debian.org/web/stats/graph2-big.png","How architectures are keeping up",v,95,15,20,".")
58 plotwb("/org/buildd.debian.org/web/stats/graph2-week.png","How architectures are keeping up (past two weeks)",window(v,start=time(v)[length(time(v))-14]),95)
59 plotwb("/org/buildd.debian.org/web/stats/graph2-week-big.png","How architectures are keeping up (past two weeks)",window(v,start=time(v)[length(time(v))-14]),95,15,20)
60 plotwb("/org/buildd.debian.org/web/stats/graph2-quarter.png","How architectures are keeping up (past quarter)",window(v,start=time(v)[length(time(v))-90]),95)
61 plotwb("/org/buildd.debian.org/web/stats/graph2-quarter-big.png","How architectures are keeping up (past quarter)",window(v,start=time(v)[length(time(v))-90]),95,15,20)