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

[tor-commits] [onionoo/master] Change 3 month weights graph to 24 hours detail.



commit 3f7a2fc1fe2a6f168e92b9a0210743ee25015047
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Wed Feb 7 16:28:47 2018 +0100

    Change 3 month weights graph to 24 hours detail.
    
    We recently changed the 3 month bandwidth graph to 24 hours detail,
    and we changed the compression of various status files to support 6
    month graphs with 24 hours detail. However, we did not consider that
    we currently need weights data for the last 3 months on a detail of 12
    hours. This commit adapts the output file by using the data that we
    now have. Maybe it even makes sense to use the same detail in both
    graphs, though that was not the original intention.
---
 src/main/java/org/torproject/onionoo/writer/WeightsDocumentWriter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/torproject/onionoo/writer/WeightsDocumentWriter.java b/src/main/java/org/torproject/onionoo/writer/WeightsDocumentWriter.java
index c701f41..7d5f1d1 100644
--- a/src/main/java/org/torproject/onionoo/writer/WeightsDocumentWriter.java
+++ b/src/main/java/org/torproject/onionoo/writer/WeightsDocumentWriter.java
@@ -69,7 +69,7 @@ public class WeightsDocumentWriter implements DocumentWriter {
   private long[] dataPointIntervals = new long[] {
       DateTimeHelper.ONE_HOUR,
       DateTimeHelper.FOUR_HOURS,
-      DateTimeHelper.TWELVE_HOURS,
+      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