Skip to content

Commit

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

let mut sys: System = SystemExt::new_all();

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

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

0 comments on commit c09c8e5

Please sign in to comment.