fix label and file size

This commit is contained in:
sliptonic
2023-05-22 20:23:57 -05:00
parent 5ce3e83eac
commit df1d81c2d5

View File

@@ -425,7 +425,7 @@ class CommandPathSanity:
machineLabel = translate("Path_Sanity", "Machine")
postLabel = translate("Path_Sanity", "Postprocessor")
flagsLabel = translate("Path_Sanity", "Post Processor Flags")
fileSizeLabel = translate("Path_Sanity", "File Size (kb)")
fileSizeLabel = translate("Path_Sanity", "File Size (kB)")
lineCountLabel = translate("Path_Sanity", "Line Count")
outTable += "|*{}*|{}\n".format(gcodeFileLabel, d["lastgcodefile"])
@@ -845,7 +845,7 @@ class CommandPathSanity:
data["linecount"] = str(0)
self.squawk("PathSanity", "The Job has not been post-processed")
else:
data["filesize"] = str(os.path.getsize(obj.LastPostProcessOutput))
data["filesize"] = str(os.path.getsize(obj.LastPostProcessOutput)/1000)
data["linecount"] = str(
sum(1 for line in open(obj.LastPostProcessOutput))
)