Skip to content

Commit

Permalink
Merge pull request #4716 from wasmerio/fix/progress-bar-tick-chars
Browse files Browse the repository at this point in the history
Fix progress bar tick chars
  • Loading branch information
syrusakbary authored May 18, 2024
2 parents 0a2a09f + f2fbcd9 commit c488f45
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/cli/src/commands/package/common/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ macro_rules! make_spinner {
pb.set_style(
indicatif::ProgressStyle::with_template("{spinner:.magenta} {msg}")
.unwrap()
.tick_strings(&["✶", "✸", "✹", "✺", "✹", "✷"]),
.tick_strings(&["✶", "✸", "✹", "✺", "✹", "✷", "✶"]),
);

pb.set_message($msg);
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/src/commands/package/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub(super) async fn upload(
pb.set_style(ProgressStyle::with_template("{spinner:.yellow} [{elapsed_precise}] [{bar:.white}] {bytes}/{total_bytes} ({bytes_per_sec}, {eta})")
.unwrap()
.progress_chars("█▉▊▋▌▍▎▏ ")
.tick_strings(&["✶", "✸", "✹", "✺", "✹", "✷"]));
.tick_strings(&["✶", "✸", "✹", "✺", "✹", "✷", "✶"]));
tracing::info!("webc is {total_bytes} bytes long");

let chunk_size = (total_bytes / 20).min(10485760);
Expand Down
4 changes: 2 additions & 2 deletions tests/wasmer-argus/src/argus/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl Argus {
"[{test_id}] {{spinner:.blue}} {{msg}}"
))
.unwrap()
.tick_strings(&["✶", "✸", "✹", "✺", "✹", "✷"]),
.tick_strings(&["✶", "✸", "✹", "✺", "✹", "✷", "✶"]),
);

p.enable_steady_tick(Duration::from_millis(100));
Expand Down Expand Up @@ -142,7 +142,7 @@ impl Argus {
"[{test_id}/{package_name}] {{spinner:.blue}} {{msg}}"
))
.unwrap()
.tick_strings(&["✶", "✸", "✹", "✺", "✹", "✷"]),
.tick_strings(&["✶", "✸", "✹", "✺", "✹", "✷", "✶"]),
);

p.enable_steady_tick(Duration::from_millis(100));
Expand Down
2 changes: 1 addition & 1 deletion tests/wasmer-argus/src/argus/packages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Argus {
p.set_style(
ProgressStyle::with_template("{spinner:.blue} {msg}")
.unwrap()
.tick_strings(&["✶", "✸", "✹", "✺", "✹", "✷"]),
.tick_strings(&["✶", "✸", "✹", "✺", "✹", "✷", "✶"]),
);
p.enable_steady_tick(Duration::from_millis(1000));

Expand Down

0 comments on commit c488f45

Please sign in to comment.