commit 5cd41cc149fecf41b72b555830114f7a0c61698d Author: Karsten Loesing karsten.loesing@gmx.net Date: Mon Jul 22 18:57:00 2013 +0200
Fix relay flags graph.
When we added HSDir to relay flags graph, we forgot to change the number 5 to 6 for available flags. --- rserve/graphs.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rserve/graphs.R b/rserve/graphs.R index 89edff5..69f9aa9 100644 --- a/rserve/graphs.R +++ b/rserve/graphs.R @@ -613,10 +613,10 @@ plot_relayflags <- function(start, end, flags, path) { missing <- setdiff(dates, networksize$date) if (length(missing) > 0) networksize <- rbind(data.frame( - date = as.Date(rep(missing, 5), origin = "1970-01-01"), + date = as.Date(rep(missing, 6), origin = "1970-01-01"), variable = paste("avg_", c("running", "exit", "guard", "fast", "stable", "hsdir"), sep = ""), - value = rep(NA, length(missing) * 5)), networksize) + value = rep(NA, length(missing) * 6)), networksize) date_breaks <- date_breaks( as.numeric(max(as.Date(end, "%Y-%m-%d")) - min(as.Date(networksize$date, "%Y-%m-%d"))))