# HG changeset patch
# User Edouard Tisserant
# Date 1614334131 -3600
# Node ID 001f63ff3aaa33f7bb7070cc8911b4e4cc02edf3
# Parent  2db69e2c567363b4bc04bd1ed67a99e253bf25b8
SVGHMI: Fixed progress time computation

diff -r 2db69e2c5673 -r 001f63ff3aaa 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):