diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-11-14 12:35:55 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-11-14 12:35:57 +0100 |
commit | c08838ff8d00af04b9e1ad1bf8a01d2b63a24bda (patch) | |
tree | ae78d66f0fde66f10f9b294886062ccda7b2a2b6 /src/util | |
parent | bf6db3f0456f2cc9db9a1e69a2c8e445952e40f8 (diff) |
Set job bar length by default to 100
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/progress.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/progress.rs b/src/util/progress.rs index 9e3036f..86d6d7a 100644 --- a/src/util/progress.rs +++ b/src/util/progress.rs @@ -43,7 +43,9 @@ impl ProgressBars { } pub fn job_bar(&self, id: &Uuid) -> ProgressBar { - self.bar(&format!("Job: {}", id), &self.bar_template) + let b = self.bar(&format!("Job: {}", id), &self.bar_template); + b.set_length(100); + b } pub fn download_bar(&self, url: &Url) -> ProgressBar { |