[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-17 14:09:01
Message-ID: 20120217140901.32ED0A60CD () git ! kde ! org
[Download RAW message or body]
Git commit fd1a612864b7f85817ac612c4d9ff04322675cfe by Shaun Reich.
Committed on 17/02/2012 at 06:34.
Pushed by sreich into branch 'plasma/sreich/qml2-system-monitors'.
splice old ones out of the array so we no longer leak
for the bar graph, which i believe has thet smallest intervals seen so
far, there's a max of 65 values. there's a small miscalculation where it
slowly leaks over time, though
M +2 -3 plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
http://commits.kde.org/kde-workspace/fd1a612864b7f85817ac612c4d9ff04322675cfe
diff --git a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js \
b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js index \
8cdeadc..211e412 100644
--- a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
+++ b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
@@ -145,12 +145,11 @@ function shiftLeft()
if (points[i][j].x < graphPadding || (points[i][j].x - horizSpace) < \
graphPadding) {
//FIXME: SHIFTS LEFT FAR, FAR TOO SOON, THE GRAPH CANT KEEP UP \
HARDLY
-// points[i].splice(j, 1);
+ points[i].splice(j, 1);
+ print("&&&&&&& LENGHT LEFTHSIFT: " + points[i].length);
}
- print("*****^^^^^** SHIFTLEFT VALUE, BEFORE: " + points[i][j].x);
points[i][j].x -= horizSpace;
- print("*****^^^^^** SHIFTLEFT VALUE, AFTER: " + points[i][j].x);
if (hoverText.visible = true) {
//shift hovertext to the left actually
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic