From 86bbf55954ac11da84d7691dc162785158edc1a6 Mon Sep 17 00:00:00 2001 From: Boog900 <54e72d8a-345f-4599-bd90-c6b9bc7d0ec5@aleeas.com> Date: Tue, 19 Nov 2024 02:15:27 +0000 Subject: [PATCH] d -> h --- binaries/cuprated/Cargo.toml | 2 +- binaries/cuprated/src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"); } } }