From df1d81c2d56033969a93d6afa1dc0032600de2dc Mon Sep 17 00:00:00 2001 From: sliptonic Date: Mon, 22 May 2023 20:23:57 -0500 Subject: [PATCH] fix label and file size --- src/Mod/Path/Path/Main/Gui/Sanity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/Path/Main/Gui/Sanity.py b/src/Mod/Path/Path/Main/Gui/Sanity.py index 5603d45b34..f668906c7e 100644 --- a/src/Mod/Path/Path/Main/Gui/Sanity.py +++ b/src/Mod/Path/Path/Main/Gui/Sanity.py @@ -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)) )