SVGHMI: Fixed progress time computation svghmi
authorEdouard Tisserant
Fri, 26 Feb 2021 11:08:51 +0100
branchsvghmi
changeset 3167 001f63ff3aaa
parent 3165 2db69e2c5673
child 3168 6950ac7aa966
SVGHMI: Fixed progress time computation
svghmi/svghmi.py
--- a/svghmi/svghmi.py	Fri Feb 26 10:00:14 2021 +0100
+++ b/svghmi/svghmi.py	Fri Feb 26 11:08:51 2021 +0100
@@ -574,8 +574,8 @@
 
     def ProgressEnd(self, _context, *args):
         k,m,t = _ProgressArgs(args)
+        self.GetCTRoot().logger.write("    Finished %s in %.3f\n"%(m, t - self.times[k]))
         self.times[k] = t
-        self.GetCTRoot().logger.write("    Finished %s in %.3f\n"%(m, t - self.times[k]))
 
     def CTNGenerate_C(self, buildpath, locations):