X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.history%2Fsrc%2Forg%2Fsimantics%2Fhistory%2FHistorySamplerItem2.java;h=be6940333a34486af59d3d1c16379daa23043254;hb=3ae012ae3916941e3ff9a2c4cc602e6f5c5b54eb;hp=73d89fa56a1aed8d73bed10724f12fe4417f4d40;hpb=e53d48782e7de740d56b779666c79c22d1fa9fc5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.history/src/org/simantics/history/HistorySamplerItem2.java b/bundles/org.simantics.history/src/org/simantics/history/HistorySamplerItem2.java index 73d89fa56..be6940333 100644 --- a/bundles/org.simantics.history/src/org/simantics/history/HistorySamplerItem2.java +++ b/bundles/org.simantics.history/src/org/simantics/history/HistorySamplerItem2.java @@ -93,11 +93,11 @@ public class HistorySamplerItem2 implements Comparable { 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;