diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-12-05 18:51:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-05 18:51:21 -0500 |
commit | f4b8386063d84f1a87bd08036b1c8d382b76bd9c (patch) | |
tree | 58770f4231fd24558be2958048233c911b60bb6b /src/app/data_harvester.rs | |
parent | 55312551357f2e1bb79d1abe5ef6425e5d593ab5 (diff) |
refactor: Rename battery_harvester to batteries (#340)
Diffstat (limited to 'src/app/data_harvester.rs')
-rw-r--r-- | src/app/data_harvester.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/app/data_harvester.rs b/src/app/data_harvester.rs index 9cf8de62..10909c8b 100644 --- a/src/app/data_harvester.rs +++ b/src/app/data_harvester.rs @@ -13,7 +13,7 @@ use crate::app::layout_manager::UsedWidgets; use futures::join; -pub mod battery_harvester; +pub mod batteries; pub mod cpu; pub mod disks; pub mod mem; @@ -32,7 +32,7 @@ pub struct Data { pub list_of_processes: Option<Vec<processes::ProcessHarvest>>, pub disks: Option<Vec<disks::DiskHarvest>>, pub io: Option<disks::IOHarvest>, - pub list_of_batteries: Option<Vec<battery_harvester::BatteryHarvest>>, + pub list_of_batteries: Option<Vec<batteries::BatteryHarvest>>, } impl Default for Data { @@ -220,10 +220,8 @@ impl DataCollector { // Batteries if let Some(battery_manager) = &self.battery_manager { if let Some(battery_list) = &mut self.battery_list { - self.data.list_of_batteries = Some(battery_harvester::refresh_batteries( - &battery_manager, - battery_list, - )); + self.data.list_of_batteries = + Some(batteries::refresh_batteries(&battery_manager, battery_list)); } if log_enabled!(log::Level::Trace) { |