[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kde-workspace/plasma/sreich/qml2-system-monitors] plasma/generic/applets/system-monitor/plotter/pri
From: Shaun Reich <shaun.reich () kdemail ! net>
Date: 2012-02-16 19:28:17
Message-ID: 20120216192817.334A0A60B9 () git ! kde ! org
[Download RAW message or body]
Git commit c3241cd819ccadc8391a144b2f5a09a5cc59c4cc by Shaun Reich.
Committed on 16/02/2012 at 20:11.
Pushed by sreich into branch 'plasma/sreich/qml2-system-monitors'.
store the points properly
M +3 -11 plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
http://commits.kde.org/kde-workspace/c3241cd819ccadc8391a144b2f5a09a5cc59c4cc
diff --git a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js \
b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js index \
5ce636a..de35e62 100644
--- a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
+++ b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
@@ -73,19 +73,11 @@ function addSample(y, sampleSet)
if (sampleSet > points.length - 1) {
points.push(new Array());
- points[points.length - 1][points.length] = 22;
+ points[points.length - 1][points.length] = { x: xValue, originalY: yValue, \
scaledY: yValue };
- print(points[points.length - 1][points.length]);
+ print(points[points.length - 1][points.length].originalY);
-
-// points[sampleSet].push( { x: xValue } );
- // points[sampleSet][0] = { test: " TEST" }
-// points[sampleSet] = {test: 1,test2: 2 };
-// points[sampleSet][points[sampleSet].length - 1] = { x: 50, originalY: 50, \
scaledY: 50 };
-
- print("SAMPLE LISTS POINTS: " + points + " || " + points[sampleSet]);
- //points[points.length - 1] = [ [ { x: 1, originalY: 2, scaledY: 1 } ], [ x: \
0 ] ];
- //points.push({x: xValue, originalY: yValue, scaledY: yValue});
+ print("SAMPLE LISTS POINTS: " + points + " || " + points[sampleSet]);
}
downscaleOne(y);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic