replace individual percentile aggregates with a single one for all

This commit is contained in:
2018-01-21 10:54:13 +01:00
parent b439c9d79a
commit 8f15aba0d5
12 changed files with 99 additions and 132 deletions

View File

@@ -30,6 +30,18 @@ public class GnuplotFileGenerator {
appendfln(result, "set xtics rotate by %d", xAxis.getRotateXAxisLabel());
appendfln(result, "set xrange [\"%s\":\"%s\"]", xAxis.getFrom(), xAxis.getTo());
/*
* set yrange ["0":"100"]
set ytics nomirror # don't show the tics of the left y-axis on the right side
set y2label "CPU load"
set y2tics
set autoscale y2
*/
appendfln(result, "set x2label \"percent\"");
appendfln(result, "set y2tics");
appendfln(result, "set x2range [\"0\":\"100\"]");
final long graphOffset = settings.getYAxisScale() == AxisScale.LINEAR ? 0 : 1;
appendfln(result, "set yrange [\""+graphOffset+"\":]");

View File

@@ -171,7 +171,7 @@ public class ScatterPlot implements ConcretePlotter {
final long fromEpochMilli = dateFrom.toInstant().toEpochMilli();
final long toEpochMilli = dateTo.toInstant().toEpochMilli();
final boolean useMillis = (toEpochMilli - fromEpochMilli) < TimeUnit.MINUTES.toMillis(5);
final CustomAggregator aggregator = plotSettings.getAggregate().createCustomAggregator(fromEpochMilli, toEpochMilli);
final CustomAggregator aggregator = plotSettings.getAggregate().createCustomAggregator(tmpDir);
long maxValue = 0;
long ignoredValues = 0;