From 1c30eba86040ebc0c60e285f09c0f6842cfd7861 Mon Sep 17 00:00:00 2001 From: QubaB Date: Mon, 9 Mar 2026 15:48:05 +0100 Subject: [PATCH] GetStatus - updated. When called from ngsolve it shows also task name of netgen. Because netgen writes directly tyo multithread.task --- libsrc/core/statushandler.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/libsrc/core/statushandler.cpp b/libsrc/core/statushandler.cpp index 093723a6..682720c0 100644 --- a/libsrc/core/statushandler.cpp +++ b/libsrc/core/statushandler.cpp @@ -95,17 +95,23 @@ namespace ngcore } - void GetStatus(std::string & s, double & percentage) + void GetStatus (std::string& s, double& percentage) { - if(threadpercent_stack.Size() > 0) + if (threadpercent_stack.Size() > 0) percentage = threadpercent_stack.Last(); else percentage = multithread.percent; - - if ( msgstatus_stack.Size() ) + + if (msgstatus_stack.Size()) s = msgstatus_stack.Last(); else - s = "idle"; + { + // netgen writes directly to multithread.task + if (percentage > 0.0) + s = multithread.task; + else + s = "idle"; + } } }