summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-11-14 12:35:55 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-11-14 12:35:57 +0100
commitc08838ff8d00af04b9e1ad1bf8a01d2b63a24bda (patch)
treeae78d66f0fde66f10f9b294886062ccda7b2a2b6 /src/util
parentbf6db3f0456f2cc9db9a1e69a2c8e445952e40f8 (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.rs4
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 {