[tor-commits] [metrics-web/master] Update path to direct-users-ranges.csv.
karsten at torproject.org
karsten at torproject.org
Thu Aug 25 11:12:16 UTC 2011
commit e51b410bd27837afc7b86734a1e7b0fbd805fa7d
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Thu Aug 25 13:09:54 2011 +0200
Update path to direct-users-ranges.csv.
---
rserve/graphs.R | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/rserve/graphs.R b/rserve/graphs.R
index ffdbdd6..d1356b4 100644
--- a/rserve/graphs.R
+++ b/rserve/graphs.R
@@ -633,8 +633,8 @@ plot_direct_users <- function(start, end, country, events, path, dpi) {
plot <- ggplot(u, aes(x = as.Date(date, "%Y-%m-%d"), y = users))
if (events == "on" & country != "all") {
r <- read.csv(
- "/srv/metrics.torproject.org/web/direct-users-ranges.csv",
- stringsAsFactors = FALSE)
+ "/srv/metrics.torproject.org/web/detector/direct-users-ranges.csv",
+ stringsAsFactors = FALSE)
r <- r[r$date >= start & r$date <= end & r$country == country,
c("date", "minusers", "maxusers")]
r <- cast(rbind(melt(u, id.vars = "date"), melt(r, id.vars = "date")))
More information about the tor-commits
mailing list