[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.2F6C9A60C9 () git ! kde ! org
[Download RAW message or body]
Git commit fa9d62cfcf56ba4a9acf543c598b01d416160748 by Shaun Reich.
Committed on 17/02/2012 at 06:28.
Pushed by sreich into branch 'plasma/sreich/qml2-system-monitors'.
fix leftshift so it doesn't shift extrememly soon, but just right
M +3 -6 plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
http://commits.kde.org/kde-workspace/fa9d62cfcf56ba4a9acf543c598b01d416160748
diff --git a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js \
b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js index \
a247e68..8cdeadc 100644
--- a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
+++ b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
@@ -205,9 +205,9 @@ function advancePlotter()
addSample(height - yPos2, 1, "rgba(0, 255, 0, .6)");
var index = points.length - 1;
- if ((points[index][points[index].length - 1].x * horizSpace) >= width - \
graphPadding) {
- //FIXME: shiftleft is broken..occurs far, far too often
- // shiftLeft();
+ if ((points[index][points[index].length - 1].x) >= width - graphPadding) {
+ print("SHIFT LEFT ATTEMPT ********************!!!");
+ shiftLeft();
}
}
@@ -290,9 +290,6 @@ function drawBarGraph()
{
// Draw Bars
-// context.strokeStyle = "rgba(0, 255, 0, 1)"
-
-
for (var i = 0; i < points.length; ++i) {
for (var j = 0; j < points[i].length; ++j) {
context.beginPath();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic