This commit is contained in:
Boog900 2024-11-19 02:15:27 +00:00
parent cde5294bf9
commit 86bbf55954
No known key found for this signature in database
GPG key ID: 42AB1287CB0041C2
2 changed files with 3 additions and 3 deletions

View file

@ -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 }

View file

@ -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");
}
}
}