[tor-commits] [metrics-web/master] Cut off last two days from new user estimate graphs.
karsten at torproject.org
karsten at torproject.org
Wed Sep 18 12:13:06 UTC 2013
commit 5a26a2cfef46111b66eb8492abb8743313509c22
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Wed Sep 18 14:10:23 2013 +0200
Cut off last two days from new user estimate graphs.
We found out in #8462 that "we can make our very first guess about Tor
users on a given day by the evening of that day and will have credible
numbers by the end of the next day." Implementing that by cutting off the
last two days from graphs.
Spotted by Roger.
---
rserve/graphs.R | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rserve/graphs.R b/rserve/graphs.R
index da39327..9070308 100644
--- a/rserve/graphs.R
+++ b/rserve/graphs.R
@@ -1024,7 +1024,7 @@ plot_bandwidth_flags <- function(start, end, path) {
plot_userstats <- function(start, end, node, variable, value, events,
path) {
- end <- min(end, as.character(Sys.Date()))
+ end <- min(end, as.character(Sys.Date() - 2))
u <- read.csv(paste("/srv/metrics.torproject.org/task-8462-graphs/",
"task-8462/userstats.csv", sep = ""),
stringsAsFactors = FALSE)
More information about the tor-commits
mailing list