]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- don't select with zero timeout, cause it just burns cpu cycles
authorMariusz Mazur <mmazur@pld-linux.org>
Mon, 14 Feb 2005 23:51:35 +0000 (23:51 +0000)
committerMariusz Mazur <mmazur@pld-linux.org>
Mon, 14 Feb 2005 23:51:35 +0000 (23:51 +0000)
- now select is run ten times per second max

Changed files:
    modules/cmds.py -> 1.10
    modules/cons.py -> 1.7

modules/cmds.py
modules/cons.py

index dff6fa9fc99ee3873346e646ff970e7e9265d141..a9e02442a2433d8e4b91c9505353bfb28692c41a 100644 (file)
@@ -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:
index 23998c7c3191485d4a68a546a03550a8e7b97ac9..b72501352a37e11306d2e5f1887b556af883310a 100644 (file)
@@ -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):
This page took 0.197041 seconds and 4 git commands to generate.