diff --git a/src/framework/scheduler/looper/mod.rs b/src/framework/scheduler/looper/mod.rs index 8e425e7..1ccc7f7 100644 --- a/src/framework/scheduler/looper/mod.rs +++ b/src/framework/scheduler/looper/mod.rs @@ -26,7 +26,7 @@ use log::debug; use log::info; use policy::{controll::calculate_control, ControllerParams}; -use super::{thermal::Thermal, topapp::TimedWatcher, FasData}; +use super::{thermal::Thermal, topapp::TopAppsWatcher, FasData}; use crate::{ framework::{ config::Config, @@ -73,7 +73,7 @@ pub struct Looper { node: Node, extension: Extension, therminal: Thermal, - windows_watcher: TimedWatcher, + windows_watcher: TopAppsWatcher, cleaner: Cleaner, fas_state: FasState, controller_state: ControllerState, @@ -97,7 +97,7 @@ impl Looper { node, extension, therminal: Thermal::new().unwrap(), - windows_watcher: TimedWatcher::new(), + windows_watcher: TopAppsWatcher::new(), cleaner: Cleaner::new(), fas_state: FasState { mode: Mode::Balance, diff --git a/src/framework/scheduler/topapp.rs b/src/framework/scheduler/topapp.rs index 9b223d1..96f28df 100644 --- a/src/framework/scheduler/topapp.rs +++ b/src/framework/scheduler/topapp.rs @@ -45,13 +45,13 @@ impl WindowsInfo { } } -pub struct TimedWatcher { +pub struct TopAppsWatcher { windows_dumper: Dumpsys, cache: WindowsInfo, last_refresh: Instant, } -impl TimedWatcher { +impl TopAppsWatcher { pub fn new() -> Self { Self { windows_dumper: Dumpsys::new("window").unwrap(),