diff --git a/binaries/cuprated/Cargo.toml b/binaries/cuprated/Cargo.toml index acf8827b..e8199c49 100644 --- a/binaries/cuprated/Cargo.toml +++ b/binaries/cuprated/Cargo.toml @@ -14,7 +14,7 @@ cuprate-fast-sync = { workspace = true } cuprate-consensus-context = { workspace = true } cuprate-consensus-rules = { workspace = true } cuprate-cryptonight = { workspace = true } -cuprate-helper = { workspace = true, features = ["serde"] } +cuprate-helper = { workspace = true, features = ["std", "serde", "time"] } cuprate-epee-encoding = { workspace = true } cuprate-fixed-bytes = { workspace = true } cuprate-levin = { workspace = true } diff --git a/binaries/cuprated/src/main.rs b/binaries/cuprated/src/main.rs index 0d06eced..1b9e90f8 100644 --- a/binaries/cuprated/src/main.rs +++ b/binaries/cuprated/src/main.rs @@ -135,9 +135,9 @@ async fn io_loop( } Command::Status => { let uptime = statics::START_INSTANT.elapsed().unwrap_or_default(); - let (days, minutes, second) = secs_to_hms(uptime.as_secs()); + let (hours, minutes, second) = secs_to_hms(uptime.as_secs()); - println!("STATUS:\n uptime: {days}d {minutes}m {second}s"); + println!("STATUS:\n uptime: {hours}h {minutes}m {second}s"); } } }