chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a52d95
)
progress: Nest: Fix to actually be progressive
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 16 May 2022 00:11:40 +0000
(
01:11
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 16 May 2022 02:09:35 +0000
(
03:09
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
support/termprogress.rs
patch
|
blob
|
history
diff --git
a/support/termprogress.rs
b/support/termprogress.rs
index 8c8fcdfae3a294200cec657aa34680c0abda03b6..cc4072cafa4518444b2f63b61d835202d9764e09 100644
(file)
--- a/
support/termprogress.rs
+++ b/
support/termprogress.rs
@@
-193,7
+193,7
@@
impl Nest {
/// From now on, when reports are issued, the inner phases are each
/// mapped to the range "now" to "now" `frac`
pub fn start_phase(&mut self, frac: f32, desc_prefix: String) {
- self.outer_phase_base = self.outer_phase_size;
+ self.outer_phase_base
+
= self.outer_phase_size;
self.outer_phase_size = frac;
let f = self.outer_phase_base / self.outer_total;