X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fftpstats.R;h=c6325233256b011c71fdd766d097c841c7f1590e;hb=d31ae14a9de247d47d9ff7b3f36705a58a065916;hp=41f2c3381f18f3b22fb6eed9c5ac3f8af5d05dbf;hpb=fb855981827bd831e4152864c3aadd220f967ae7;p=dak.git diff --git a/scripts/debian/ftpstats.R b/scripts/debian/ftpstats.R index 41f2c338..c6325233 100644 --- a/scripts/debian/ftpstats.R +++ b/scripts/debian/ftpstats.R @@ -1,19 +1,19 @@ -arch <- c("source", "all", "amd64", "i386", "alpha", "arm", "armel", "hppa", "hurd-i386", "ia64", - "kfreebsd-amd64", "kfreebsd-i386", "mips", "mipsel", "powerpc", "s390", "sparc") +arch <- c("source", "all", "amd64", "i386", "alpha", "arm", "armel", "armhf", "hppa", "hurd-i386", "ia64", + "kfreebsd-amd64", "kfreebsd-i386", "mips", "mipsel", "powerpc", "s390", "s390x", "sparc") palette(c("midnightblue", "gold", "turquoise", "cyan", "black", "red", "OrangeRed", "green3", "blue", "magenta", - "comsilk3", "darkolivegreen3", "tomato4", "violetred2","thistle4", "steelblue2", "springgreen4", + "cornsilk3", "darkolivegreen3", "tomato4", "violetred2","thistle4", "steelblue2", "springgreen4", "salmon","gray")) cname <- c("date",arch) plotsize <- function(file,title,p,height=11.8,width=16.9) { bitmap(file=file,type="png16m",width=16.9,height=11.8) - barplot(t(p),col = 1:15, main=title, + barplot(t(p),col = 1:19, main=title, xlab="date", ylab="size (MiB)") legend(par("usr")[1]+xinch(5),par("usr")[4]-yinch(0.1),legend=colnames(t), - ncol=3,fill=1:15,xjust=1,yjust=1) + ncol=2,fill=1:19,xjust=1,yjust=1) } -t <- (read.table("/org/ftp.debian.org/misc/ftpstats.data",sep=",",header=0,row.names=1,col.names=cname))/1024/1024 -v <- t[(length(t$all)-90):(length(t$all)),1:15] +t <- (read.table("/srv/ftp-master.debian.org/misc/ftpstats.data",sep=",",header=0,row.names=1,col.names=cname))/1024/1024 +v <- t[(length(t$all)-90):(length(t$all)),1:19] #plotsize("/org/ftp.debian.org/web/size.png","Daily dinstall run size by arch",t) -plotsize("/org/ftp.debian.org/web/size-quarter.png","Daily dinstall run size by arch (past quarter)",v) +plotsize("/srv/ftp.debian.org/web/size-quarter.png","Daily dinstall run size by arch (past quarter)",v)