Skip to content

Commit

Permalink
refactor: change property name
Browse files Browse the repository at this point in the history
  • Loading branch information
shm11C3 committed Sep 14, 2024
1 parent ad8a21c commit 8edbab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/services/system_info_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub struct CpuInfo {
name: String,
vendor: String,
core_count: usize,
frequency: u64,
clock: u64,
cpu_name: String,
}

Expand All @@ -33,7 +33,7 @@ pub fn get_cpu_info(system: MutexGuard<'_, System>) -> Result<CpuInfo, String> {
name: cpus[0].brand().to_string(),
vendor: cpus[0].vendor_id().to_string(),
core_count: cpus.len(),
frequency: cpus[0].frequency(),
clock: cpus[0].frequency(),
cpu_name: cpus[0].name().to_string(),
};

Expand Down

0 comments on commit 8edbab6

Please sign in to comment.