Skip to content

Commit

Permalink
(experimental) updated uptime handling
Browse files Browse the repository at this point in the history
  • Loading branch information
hitblast committed Apr 4, 2024
1 parent 9fb164c commit d5c9cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn main() {

// uptime-related variables
let uptime: usize = general_readout.uptime().unwrap_or_default();
let uptime_hours: usize = (uptime / (60 * 60)) % 24;
let uptime_hours: usize = (uptime / 60) / 60;
let uptime_minutes: usize = (uptime / 60) % 60;
let mut uptime: String = format!("{} minutes", uptime_minutes);

Expand Down

0 comments on commit d5c9cf4

Please sign in to comment.