From: Jorge Gorbe Moya Date: Thu, 3 Jul 2008 13:26:18 +0000 (+0200) Subject: Bugfix. Last line of the log wasn't being written. X-Git-Url: http://slack.codemaniacs.com/git/?a=commitdiff_plain;h=91b6c3d00c0de97536dbe6b9ccd66eec02b773dc;p=melon.git Bugfix. Last line of the log wasn't being written. --- 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()