Merge pull request #2371 from quizzmaster/dev

Fix scaling of the activity graph
This commit is contained in:
Milos Kozak 2020-01-16 13:40:12 +01:00 committed by GitHub
commit 6e38f52c7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,7 +371,8 @@ public class GraphData {
actArrayHist.add(new ScaledDataPoint(time, act, actScale));
else
actArrayPred.add(new ScaledDataPoint(time, act, actScale));
if (act > maxIAValue) maxIAValue = act;
maxIAValue = Math.max(maxIAValue, Math.abs(act));
}
ScaledDataPoint[] actData = new ScaledDataPoint[actArrayHist.size()];