[tor-commits] [metrics-web/master] squash! Update directory bytes graph to include authorities.
karsten at torproject.org
karsten at torproject.org
Sun Mar 8 07:27:39 UTC 2020
commit d8871b3487d3363766af2f1236b7ac3f72e785a5
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Sun Mar 8 08:27:05 2020 +0100
squash! Update directory bytes graph to include authorities.
- Handle missing dates correctly.
---
src/main/R/rserver/rserve-init.R | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/R/rserver/rserve-init.R b/src/main/R/rserver/rserve-init.R
index 6d4c571..897654c 100644
--- a/src/main/R/rserver/rserve-init.R
+++ b/src/main/R/rserver/rserve-init.R
@@ -488,7 +488,7 @@ plot_dirbytes <- function(start_p, end_p, path_p) {
authority = factor(
ifelse(grepl("auth", variable), "authorities", "mirrors"),
levels = c("authorities", "mirrors"))) %>%
- complete(date = full_seq(date, period = 1), nesting(variable)) %>%
+ complete(date = full_seq(date, period = 1), nesting(readwrite, authority)) %>%
ggplot(aes(x = date, y = value, colour = readwrite)) +
geom_line() +
facet_grid(authority ~ ., scales = "free_y", space = "free_y") +
More information about the tor-commits
mailing list