]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.history/src/org/simantics/history/HistorySamplerItem2.java
HistorySampler.sample(HistorySamplerItem2, ...) now uses mipmapped data
[simantics/platform.git] / bundles / org.simantics.history / src / org / simantics / history / HistorySamplerItem2.java
index 73d89fa56a1aed8d73bed10724f12fe4417f4d40..be6940333a34486af59d3d1c16379daa23043254 100644 (file)
@@ -93,11 +93,11 @@ public class HistorySamplerItem2 implements Comparable<HistorySamplerItem2> {
                return true;
        }
 
-       private LevelItem getFormat(double pixelsPerSecond) throws HistoryException {
+       private LevelItem getFormat(double secondsPerPixel) throws HistoryException {
                LevelItem result = null;
                for (LevelItem format : items) {
                        double interval = format.samplingInterval;
-                       if (Double.isNaN( interval ) || interval <= pixelsPerSecond) {
+                       if (Double.isNaN( interval ) || interval <= secondsPerPixel) {
                                result = format;
                        } else {
                                break;