[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 2:06:23
Message-ID: 20120217020623.28622A60B9 () git ! kde ! org
[Download RAW message or body]
Git commit 8fdeb82297a777d79a758db1c62ce9b6cc6a42d9 by Shaun Reich.
Committed on 17/02/2012 at 00:36.
Pushed by sreich into branch 'plasma/sreich/qml2-system-monitors'.
YES! was a simple random number generator copy-paste typo
works beautifully. it leaks like something awful though, I know without
looking
M +2 -2 plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
http://commits.kde.org/kde-workspace/8fdeb82297a777d79a758db1c62ce9b6cc6a42d9
diff --git a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js \
b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js index \
3037e55..c74b63c 100644
--- a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
+++ b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
@@ -219,9 +219,9 @@ function advancePlotter()
debug("$$$$$$$ yPercent: " + yPercent);
debug("$$$$$$$ graphPadding: " + graphPadding);
var yPos = (height * (yPercent / 100) + graphPadding * 2);
- var yPos2 = (height * (yPercent / 100) + graphPadding * 2);
+ var yPos2 = (height * (yPercent2 / 100) + graphPadding * 2);
debug("randomly generated y pos: " + yPos);
- addSample(height - yPos, 0, "rgba(0, 0, 255, 1)");
+ addSample(height - yPos, 0, "rgba(0, 0, 255, .5)");
addSample(height - yPos2, 1, "rgba(0, 0, 0, .5)");
// if ((points[points.length - 1][sampleSetLength - 1] * horizSpace) >= width - \
graphPadding) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic