Skip to content

Commit

Permalink
fix issues on non-Linux regarding typos/imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang committed Nov 21, 2022
1 parent d0cf1ba commit 28400f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/data_harvester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ use starship_battery::{Battery, Manager};
#[cfg(not(target_os = "linux"))]
use sysinfo::{System, SystemExt};

use self::processes::CpuUsageStrategy;

use super::DataFilters;
use crate::app::layout_manager::UsedWidgets;

Expand Down Expand Up @@ -333,6 +331,8 @@ impl DataCollector {
#[cfg(target_os = "linux")]
{
// Must do this here since we otherwise have to make `get_process_data` async.
use self::processes::CpuUsageStrategy;

let normalize_cpu = if self.unnormalized_cpu {
heim::cpu::logical_count()
.await
Expand Down
2 changes: 1 addition & 1 deletion src/app/data_harvester/processes/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub fn get_process_data(
super::macos_freebsd::get_process_data(
sys,
use_current_cpu_total,
cpu_strategy,
unnormalized_cpu,
mem_total_kb,
user_table,
get_macos_process_cpu_usage,
Expand Down

0 comments on commit 28400f6

Please sign in to comment.