Support progress without known total
- Vorherrschende Sprache
- Rust
- Sterne
- 600
- Forks
- 59
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I'd like to use a progress indicator showing time and thoughput, current total bytes.
Currently the counter box always shows the total:
```rust
// counter box
if self.show_counter {
let (c, t) = (self.current as f64, self.total as f64);
prefix = prefix +
&match self.units {
Units::Default => format!("{} / {} ", c, t),
Units::Bytes => format!("{} / {} ", kb_fmt!(c), kb_fmt!(t)),
};
}
```
Maybe a `show_total` could be added which switches to another counter format string like `{}`
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.