From 5bc510f200907ce3fbfc4d125b81ce5f42a255a7 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Thu, 4 Sep 2008 19:21:07 +0100 Subject: [PATCH] Update the display less frequently while downloading Debian bug #497569 says downloading uses 100% CPU (Simon Wenner). Not sure if this is the reason, but we're probably updating the display too frequently anyway. --- zeroinstall/0launch-gui/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeroinstall/0launch-gui/gui.py b/zeroinstall/0launch-gui/gui.py index a6ae279..a8b8f9a 100644 --- a/zeroinstall/0launch-gui/gui.py +++ b/zeroinstall/0launch-gui/gui.py @@ -29,7 +29,7 @@ class GUIHandler(handler.Handler): self.mainwindow.update_download_status() return True pulse() - self.pulse = gobject.timeout_add(50, pulse) + self.pulse = gobject.timeout_add(200, pulse) elif len(self.monitored_downloads) == 0: # Delay before resetting, in case we start a new download quickly gobject.timeout_add(500, self._reset_counters) -- 2.11.4.GIT