gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] libvob/lava bgfilegen.py


From: Asko Soukka
Subject: [Gzz-commits] libvob/lava bgfilegen.py
Date: Sun, 04 May 2003 09:11:02 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Changes by:     Asko Soukka <address@hidden>    03/05/04 09:11:02

Modified files:
        lava           : bgfilegen.py 

Log message:
        for tuukkah

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/lava/bgfilegen.py.diff?tr1=1.12&tr2=1.13&r1=text&r2=text

Patches:
Index: libvob/lava/bgfilegen.py
diff -u libvob/lava/bgfilegen.py:1.12 libvob/lava/bgfilegen.py:1.13
--- libvob/lava/bgfilegen.py:1.12       Sun May  4 09:05:51 2003
+++ libvob/lava/bgfilegen.py    Sun May  4 09:11:01 2003
@@ -136,9 +136,11 @@
 files within directory %s. Please, replace foo with some 64bit integer
 value.
 """ % (basedir)
+            sleep = 0
             while 1:
                 requests = listdir(basedir, 'request')
                 if len(requests) > 0:
+                    sleep = 0
                     for seed in requests:
                         filepath =  genBgFileFromSeed(w,
                                           vs,
@@ -150,8 +152,10 @@
                         os.system('rm '+basedir+seed)
                         
                 else:
-                    print time.strftime('%y/%m/%d %H:%M:%S'), \
-                          "No requests, sleeping..."
+                    if not sleep:
+                        print time.strftime('%y/%m/%d %H:%M:%S'), \
+                              "No more requests, sleeping..."
+                        sleep = 1
                     time.sleep(1)
                 if os.path.isfile(basedir+'stop_bgfilegen'):
                     print time.strftime('%y/%m/%d %H:%M:%S'), "Exiting..."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]