[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-web/master] Fix torperf graph for single source.



commit de1799779b3eb1cf0f94ff3c2ff5fb5e9df6daab
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Mon May 7 10:57:24 2018 +0200

    Fix torperf graph for single source.
---
 src/main/R/rserver/graphs.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/R/rserver/graphs.R b/src/main/R/rserver/graphs.R
index 332204b..b6eb221 100644
--- a/src/main/R/rserver/graphs.R
+++ b/src/main/R/rserver/graphs.R
@@ -589,7 +589,7 @@ plot_torperf <- function(start, end, source, server, filesize, path) {
   filesize_val <- ifelse(filesize == "50kb", 50 * 1024,
           ifelse(filesize == "1mb", 1024 * 1024, 5 * 1024 * 1024))
   t <- read.csv(paste(stats_dir, "torperf-1.1.csv", sep = ""),
-    colClasses = c("date" = "Date"))
+    colClasses = c("date" = "Date", "source" = "character"))
   known_sources <- c("all", unique(t[t$source != "", "source"]))
   colours <- data.frame(source = known_sources,
       colour = brewer.pal(length(known_sources), "Paired"),

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits