Merge pull request #9637 from Ondsel-Development/sanitybug

fix label and file size
This commit is contained in:
Chris Hennes
2023-05-25 07:28:33 -05:00
committed by GitHub

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))
)