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

[tor-commits] [metrics-web/master] squash! Update directory bytes graph to include authorities.



commit d8871b3487d3363766af2f1236b7ac3f72e785a5
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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") +

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