Commit 51166067 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Change 3 months graphs to 6 months graphs.

Implements #25175.
parent 963fccc5
......@@ -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
......
......@@ -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) };
......
......@@ -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) };
......
......@@ -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) };
......
......@@ -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) };
......
......@@ -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 };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment