Skip to content

Commit

Permalink
Unwrap debug system info
Browse files Browse the repository at this point in the history
  • Loading branch information
jackra1n committed May 18, 2024
1 parent 7811cc0 commit 2e8d679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ fn main() -> Result<(), Box<dyn Error>> {

debug!("System initialized. System info:");
debug!("================================");
debug!("System name: {:?}", System::name());
debug!("System kernel version: {:?}", System::kernel_version());
debug!("System OS version: {:?}", System::os_version());
debug!("System name: {}", System::name().unwrap_or_default());
debug!("System kernel version: {}", System::kernel_version().unwrap_or_default());
debug!("System OS version: {}", System::os_version().unwrap_or_default());

let mut disk_usage = String::new();
let disk_update_interval = Duration::from_secs(60);
Expand Down

0 comments on commit 2e8d679

Please sign in to comment.