Bugfix. Last line of the log wasn't being written.
authorJorge Gorbe Moya <jgorbe@dsic.upv.es>
Thu, 3 Jul 2008 13:26:18 +0000 (15:26 +0200)
committerJorge Gorbe Moya <jgorbe@dsic.upv.es>
Thu, 3 Jul 2008 13:26:18 +0000 (15:26 +0200)
melon-watch-dir.py

index 45a9420e7a27ceee05453f562d35f5a1dca752d9..e4e1e76e409fcf02af78b356ba864d220984e772 100755 (executable)
@@ -28,6 +28,8 @@ while count < total:
        old_count = count
        count = len(os.listdir(dirname))
 
-
+outfile.write("!!%s&%s&%s&%s&%d!!\n"%(name, user, hostname, dirname+" "+str(count)+"/"+str(total), (100*count)/total))
+outfile.flush()
+outfile.close()