Change expression of countdown
This commit is contained in:
parent
f45d5da3c3
commit
9f1f49f761
|
|
@ -240,7 +240,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
let mut remaining_time: u64 = 60 - elapsed_time;
|
||||
|
||||
while remaining_time > 0 && 60 > remaining_time {
|
||||
print!("\rstart tradingbot in {} seconds", remaining_time);
|
||||
print!("\rstart tradingbot in {:2} seconds", remaining_time);
|
||||
io::stdout().flush();
|
||||
elapsed_time = instant.elapsed().as_secs();
|
||||
loop {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user