Small bug in package com.serotonin.m2m2.rt.script; NumericPointWrapper class
-
to de mango develop, the function have one small bug. is right?
private AnalogStatistics getStats(long from, long to)
{
PointValueTime start = this.point.getPointValueBefore(from);
List<PointValueTime> values = this.point.getPointValuesBetween(from, to);
PointValueTime end = this.point.getPointValueAfter(from); //here should be to,is not from
AnalogStatistics stats = new AnalogStatistics(from, to, start, values, end);
return stats;
}who have the git account,please update.
-
hussam,
Thank you for letting us know about this. I will make sure this fix gets added to the next release. In the future feel free to add any potential bugs to our git Issue list here: