From 91b6c3d00c0de97536dbe6b9ccd66eec02b773dc Mon Sep 17 00:00:00 2001 From: Jorge Gorbe Moya Date: Thu, 3 Jul 2008 15:26:18 +0200 Subject: [PATCH] Bugfix. Last line of the log wasn't being written. --- melon-watch-dir.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/melon-watch-dir.py b/melon-watch-dir.py index 45a9420..e4e1e76 100755 --- a/melon-watch-dir.py +++ b/melon-watch-dir.py @@ -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() -- 2.34.1