]> git.decadent.org.uk Git - dak.git/blob - scripts/debian/ftpstats.R
dinstall
[dak.git] / scripts / debian / ftpstats.R
1 arch <- c("source", "all", "amd64", "i386", "alpha", "arm", "armel", "hppa", "hurd-i386", "ia64",
2         "mips", "mipsel", "powerpc", "s390", "sparc")
3 palette(c("midnightblue", "gold", "turquoise", "cyan", "black", "red", "OrangeRed", "green3", "blue",
4         "magenta", "tomato4",
5         "violetred2","thistle4", "steelblue2", "springgreen4",
6         "salmon","gray"))
7 cname <- c("date",arch)
8 plotsize <- function(file,title,p,height=11.8,width=16.9) {
9         bitmap(file=file,type="png16m",width=16.9,height=11.8)
10         barplot(t(p),col = 1:15, main=title,
11                 xlab="date", ylab="size (MiB)")
12         legend(par("usr")[1]+xinch(5),par("usr")[4]-yinch(0.1),legend=colnames(t),
13                 ncol=3,fill=1:15,xjust=1,yjust=1)
14 }
15 t <- (read.table("/org/ftp.debian.org/misc/ftpstats.data",sep=",",header=0,row.names=1,col.names=cname))/1024/1024
16 v <- t[(length(t$all)-90):(length(t$all)),1:15]
17
18 #plotsize("/org/ftp.debian.org/web/size.png","Daily dinstall run size by arch",t)
19 plotsize("/org/ftp.debian.org/web/size-quarter.png","Daily dinstall run size by arch (past quarter)",v)
20