From 4f2767392b48d3eadf5a14da094bb050fe0ec4af Mon Sep 17 00:00:00 2001 From: Mariusz Mazur Date: Mon, 14 Feb 2005 23:51:35 +0000 Subject: [PATCH] - don't select with zero timeout, cause it just burns cpu cycles - now select is run ten times per second max Changed files: modules/cmds.py -> 1.10 modules/cons.py -> 1.7 --- modules/cmds.py | 1 - modules/cons.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/cmds.py b/modules/cmds.py index dff6fa9..a9e0244 100644 --- a/modules/cmds.py +++ b/modules/cmds.py @@ -139,7 +139,6 @@ def cmd_gettree(con): buf='' for pkgname in pkglist: # TODO: show only user's own pkgs - # TODO: show if already marked pkg=srctree[pkgname] line=pkgname if pkg.marked4moving: diff --git a/modules/cons.py b/modules/cons.py index 23998c7..b725013 100644 --- a/modules/cons.py +++ b/modules/cons.py @@ -41,7 +41,7 @@ def readables(): lst=cons[:] lst.append(privlistener) lst.append(publistener) - inlst,outlst,errlst = select.select(lst, [], [], 0) + inlst,outlst,errlst = select.select(lst, [], [], 0.1) return inlst def createlistener(path): -- 2.44.0