Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
Metrics
Onionoo
Commits
51166067
Commit
51166067
authored
Sep 04, 2018
by
Karsten Loesing
Browse files
Change 3 months graphs to 6 months graphs.
Implements
#25175
.
parent
963fccc5
Changes
6
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
51166067
...
...
@@ -4,6 +4,8 @@
-
Extend "version" parameter to support lists and ranges.
-
Remove redundant "1_week" and "1_month" graphs from clients
documents.
-
Change "3_months" graphs to "6_months" graphs in all documents
containing history objects.
# Changes in version 6.2-1.17.1 - 2018-08-17
...
...
src/main/java/org/torproject/onionoo/writer/BandwidthDocumentWriter.java
View file @
51166067
...
...
@@ -67,7 +67,7 @@ public class BandwidthDocumentWriter implements DocumentWriter {
"3_days"
,
"1_week"
,
"1_month"
,
"
3
_months"
,
"
6
_months"
,
"1_year"
,
"5_years"
};
...
...
@@ -75,7 +75,7 @@ public class BandwidthDocumentWriter implements DocumentWriter {
Period
.
ofDays
(
3
),
Period
.
ofWeeks
(
1
),
Period
.
ofMonths
(
1
),
Period
.
ofMonths
(
3
),
Period
.
ofMonths
(
6
),
Period
.
ofYears
(
1
),
Period
.
ofYears
(
5
)
};
...
...
src/main/java/org/torproject/onionoo/writer/ClientsDocumentWriter.java
View file @
51166067
...
...
@@ -78,12 +78,12 @@ public class ClientsDocumentWriter implements DocumentWriter {
}
private
String
[]
graphNames
=
new
String
[]
{
"
3
_months"
,
"
6
_months"
,
"1_year"
,
"5_years"
};
private
Period
[]
graphIntervals
=
new
Period
[]
{
Period
.
ofMonths
(
3
),
Period
.
ofMonths
(
6
),
Period
.
ofYears
(
1
),
Period
.
ofYears
(
5
)
};
...
...
src/main/java/org/torproject/onionoo/writer/UptimeDocumentWriter.java
View file @
51166067
...
...
@@ -79,14 +79,14 @@ public class UptimeDocumentWriter implements DocumentWriter {
private
String
[]
graphNames
=
new
String
[]
{
"1_week"
,
"1_month"
,
"
3
_months"
,
"
6
_months"
,
"1_year"
,
"5_years"
};
private
Period
[]
graphIntervals
=
new
Period
[]
{
Period
.
ofWeeks
(
1
),
Period
.
ofMonths
(
1
),
Period
.
ofMonths
(
3
),
Period
.
ofMonths
(
6
),
Period
.
ofYears
(
1
),
Period
.
ofYears
(
5
)
};
...
...
src/main/java/org/torproject/onionoo/writer/WeightsDocumentWriter.java
View file @
51166067
...
...
@@ -55,14 +55,14 @@ public class WeightsDocumentWriter implements DocumentWriter {
private
String
[]
graphNames
=
new
String
[]
{
"1_week"
,
"1_month"
,
"
3
_months"
,
"
6
_months"
,
"1_year"
,
"5_years"
};
private
Period
[]
graphIntervals
=
new
Period
[]
{
Period
.
ofWeeks
(
1
),
Period
.
ofMonths
(
1
),
Period
.
ofMonths
(
3
),
Period
.
ofMonths
(
6
),
Period
.
ofYears
(
1
),
Period
.
ofYears
(
5
)
};
...
...
src/test/java/org/torproject/onionoo/writer/GraphHistoryCompilerTest.java
View file @
51166067
...
...
@@ -140,21 +140,21 @@ public class GraphHistoryCompilerTest {
private
final
String
[]
graphNames
=
new
String
[]
{
"1_week"
,
"1_month"
,
"
3
_months"
,
"
6
_months"
,
"1_year"
,
"5_years"
};
private
final
Period
[]
graphIntervals
=
new
Period
[]
{
Period
.
ofWeeks
(
1
),
Period
.
ofMonths
(
1
),
Period
.
ofMonths
(
3
),
Period
.
ofMonths
(
6
),
Period
.
ofYears
(
1
),
Period
.
ofYears
(
5
)
};
private
final
long
[]
dataPointIntervals
=
new
long
[]
{
DateTimeHelper
.
ONE_HOUR
,
DateTimeHelper
.
FOUR_HOURS
,
DateTimeHelper
.
TWELVE_HOURS
,
DateTimeHelper
.
ONE_DAY
,
DateTimeHelper
.
TWO_DAYS
,
DateTimeHelper
.
TEN_DAYS
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment