commit 8e4a9b3ddefe1f0a3ff978cc86602f5c11c1e5a5 Author: Karsten Loesing karsten.loesing@gmx.net Date: Tue Feb 25 10:25:40 2014 +0100
Fix colors in versions graphs.
The issue was that there are now relays not running little-t tor, but node-Tor. This confused our graphing script. Taking out all version numbers that don't start with "0." works around this problem.
Spotted by arma. --- website/rserve/graphs.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/website/rserve/graphs.R b/website/rserve/graphs.R index 18d7734..b9550f4 100644 --- a/website/rserve/graphs.R +++ b/website/rserve/graphs.R @@ -369,7 +369,8 @@ plot_versions <- function(start, end, path) { s <- read.csv(paste("/srv/metrics.torproject.org/web/shared/stats/", "servers.csv", sep = ""), stringsAsFactors = FALSE) s <- s[s$date >= start & s$date <= end & s$flag == '' & - s$country == '' & s$version != '' & s$platform == '' & + s$country == '' & s$version != '' & + substr(s$version, 1, 2) == '0.' & s$platform == '' & s$ec2bridge == '', ] s <- data.frame(date = as.Date(s$date, "%Y-%m-%d"), version = s$version, relays = s$relays)
tor-commits@lists.torproject.org