[Pkg-wmaker-commits] [wmbubble] 65/207: Decouple things that shouldn't be

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:04 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit 1d15b99356db10a2d39633cde46cc2c216739917
Author: Robert Jacobs <rnjacobs at mit.edu>
Date:   Fri Aug 12 00:21:54 2011 -0700

    Decouple things that shouldn't be
---
 bubblemon.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bubblemon.c b/bubblemon.c
index 3ee87b8..4b74b37 100644
--- a/bubblemon.c
+++ b/bubblemon.c
@@ -468,15 +468,15 @@ int main(int argc, char **argv) {
 			duck_swimmer();
 		}
 
-		if (cpu_enabled || memscreen_enabled) {
+		if (cpu_enabled && delay == 0)
 			/* we don't want to redraw changing digits every update because that
 			 * doesn't look so good. we throttle it above because system_cpu is
 			 * expensive on linux. */
-			if (delay == 0)
-				draw_cpugauge(loadPercentage);
+			draw_cpugauge(loadPercentage);
+
+		if (memscreen_enabled)
 			/* ? */
 			show_graph = calculate_transparencies(proximity);
-		}
 
 		if (cpu_enabled)
 			alpha_cpu();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list