Improve get-epoch-info output for longer epoch durations (#7392)
automerge
This commit is contained in:
@ -20,6 +20,7 @@ dirs = "2.0.2"
|
||||
lazy_static = "1.4.0"
|
||||
log = "0.4.8"
|
||||
indicatif = "0.13.0"
|
||||
humantime = "1.3.0"
|
||||
num-traits = "0.2"
|
||||
pretty-hex = "0.1.1"
|
||||
reqwest = { version = "0.9.22", default-features = false, features = ["rustls-tls"] }
|
||||
|
@ -360,11 +360,7 @@ pub fn process_get_epoch_info(
|
||||
);
|
||||
println_name_value(
|
||||
"Time remaining in current epoch:",
|
||||
&format!(
|
||||
"{} minutes, {} seconds",
|
||||
remaining_time_in_epoch.as_secs() / 60,
|
||||
remaining_time_in_epoch.as_secs() % 60
|
||||
),
|
||||
&humantime::format_duration(remaining_time_in_epoch).to_string(),
|
||||
);
|
||||
Ok("".to_string())
|
||||
}
|
||||
|
Reference in New Issue
Block a user