fix label and file size
This commit is contained in:
@@ -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))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user