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

[tor-commits] [onionoo/release] Remove "1_week" and "1_month" clients graphs.



commit 963fccc5d49c7c850c602350f0ac7add86263af2
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Mon Jul 30 09:37:16 2018 +0200

    Remove "1_week" and "1_month" clients graphs.
    
    Implements #25177.
---
 CHANGELOG.md                                                        | 2 ++
 .../java/org/torproject/onionoo/writer/ClientsDocumentWriter.java   | 6 ------
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 243c5af..5fb5ff9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
 
  * Medium changes
    - Extend "version" parameter to support lists and ranges.
+   - Remove redundant "1_week" and "1_month" graphs from clients
+     documents.
 
 
 # Changes in version 6.2-1.17.1 - 2018-08-17
diff --git a/src/main/java/org/torproject/onionoo/writer/ClientsDocumentWriter.java b/src/main/java/org/torproject/onionoo/writer/ClientsDocumentWriter.java
index 2bf1862..1928bd2 100644
--- a/src/main/java/org/torproject/onionoo/writer/ClientsDocumentWriter.java
+++ b/src/main/java/org/torproject/onionoo/writer/ClientsDocumentWriter.java
@@ -78,23 +78,17 @@ public class ClientsDocumentWriter implements DocumentWriter {
   }
 
   private String[] graphNames = new String[] {
-      "1_week",
-      "1_month",
       "3_months",
       "1_year",
       "5_years" };
 
   private Period[] graphIntervals = new Period[] {
-      Period.ofWeeks(1),
-      Period.ofMonths(1),
       Period.ofMonths(3),
       Period.ofYears(1),
       Period.ofYears(5) };
 
   private long[] dataPointIntervals = new long[] {
       DateTimeHelper.ONE_DAY,
-      DateTimeHelper.ONE_DAY,
-      DateTimeHelper.ONE_DAY,
       DateTimeHelper.TWO_DAYS,
       DateTimeHelper.TEN_DAYS };
 



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