From a232f80463871157bdcf66716f4ce5a03f0a87cd Mon Sep 17 00:00:00 2001 From: Colin Nolan Date: Mon, 30 Jan 2017 11:08:18 +0000 Subject: [PATCH] Fixes #27. --- pcp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcp b/pcp index 8483316..7240d70 100755 --- a/pcp +++ b/pcp @@ -791,8 +791,8 @@ def processMD5(statedb, payload): % (workerrank, timestamp(), filename, srcmd5, md5sum, attempt)) # TODO: Save corrupt segments of files. if chunk < 0: - corruptfile = destfile+"_CORRUPTED_%i" %attempt destfile = mungePath(sourcedir, destdir, filename) + corruptfile = destfile + "_CORRUPTED_%i" % attempt print ("R%i: %s Renaming corrupt file as %s for later analysis." % (workerrank, timestamp(), corruptfile)) os.rename (destfile, corruptfile)