aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2026-02-20 10:29:42 +0100
committerGitHub Enterprise <[email protected]>2026-02-20 10:29:42 +0100
commit17898ec8a7ce42c0da27ac50c5c65aeb447c6374 (patch)
treece7a228f531bc5439d04466567ecb0635a61d092
parentinitial CLAUDE.md (#764) (diff)
downloadzen-17898ec8a7ce42c0da27ac50c5c65aeb447c6374.tar.xz
zen-17898ec8a7ce42c0da27ac50c5c65aeb447c6374.zip
fix plain progress bar (#768)
* fix plain progress not updating current state
-rw-r--r--CHANGELOG.md3
-rw-r--r--src/zen/progressbar.cpp1
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9fa4fe031..0098f08b4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,7 @@
##
+- Bugfix: `--plain-progress` style progress bar should now show elapsed time correctly
+
+## 5.7.21
- Feature: Added `--security-config-path` option to zenserver to configure security settings
- Expects a path to a .json file
- Default is an empty path resulting in no extra security settings and legacy behavior
diff --git a/src/zen/progressbar.cpp b/src/zen/progressbar.cpp
index 83606df67..1ee1d1e71 100644
--- a/src/zen/progressbar.cpp
+++ b/src/zen/progressbar.cpp
@@ -245,6 +245,7 @@ ProgressBar::UpdateState(const State& NewState, bool DoLinebreak)
const std::string Details = (!NewState.Details.empty()) ? fmt::format(": {}", NewState.Details) : "";
const std::string Output = fmt::format("{} {}% ({}){}\n", Task, PercentDone, NiceTimeSpanMs(ElapsedTimeMS), Details);
OutputToConsoleRaw(Output);
+ m_State = NewState;
}
else if (m_Mode == Mode::Pretty)
{