Skip to content

Commit

Permalink
MiningStatus: Only show whole seconds in Display
Browse files Browse the repository at this point in the history
It looks quite messy in the dashboard if you show the whole precision.
Just showing the number of seconds seems more elegant.
  • Loading branch information
Sword-Smith committed Nov 7, 2024
1 parent 33fbcfe commit 40b2dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/state/mining_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ impl Display for MiningStatus {

match self {
MiningStatus::Guessing(_) => {
write!(f, "guessing for {:?}", elapsed_time.unwrap())
write!(f, "guessing for {}", elapsed_time.unwrap().as_secs())
}
MiningStatus::Composing(_) => {
write!(f, "composing for {:?}", elapsed_time.unwrap())
write!(f, "composing for {}", elapsed_time.unwrap().as_secs())
}
MiningStatus::Inactive => write!(f, "inactive"),
}
Expand Down

0 comments on commit 40b2dfb

Please sign in to comment.