Skip to content

Commit

Permalink
refactor: 重命名顶层应用监视器
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Nov 15, 2024
1 parent b24c929 commit 372eed1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/framework/scheduler/looper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/framework/scheduler/topapp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 372eed1

Please sign in to comment.