Removed extra debug statements.
This commit is contained in:
parent
a7594efbe0
commit
3b588f1ba9
|
@ -114,7 +114,6 @@ impl DataState {
|
||||||
|
|
||||||
let current_instant = std::time::Instant::now();
|
let current_instant = std::time::Instant::now();
|
||||||
|
|
||||||
debug!("Start....");
|
|
||||||
self.data.cpu = cpu::get_cpu_data_list(&self.sys);
|
self.data.cpu = cpu::get_cpu_data_list(&self.sys);
|
||||||
if let Ok(process_list) = processes::get_sorted_processes_list(
|
if let Ok(process_list) = processes::get_sorted_processes_list(
|
||||||
&self.sys,
|
&self.sys,
|
||||||
|
@ -175,7 +174,6 @@ impl DataState {
|
||||||
if let Ok(temp) = temp_res {
|
if let Ok(temp) = temp_res {
|
||||||
self.data.temperature_sensors = temp;
|
self.data.temperature_sensors = temp;
|
||||||
}
|
}
|
||||||
debug!("End....");
|
|
||||||
|
|
||||||
// Update time
|
// Update time
|
||||||
self.data.last_collection_time = current_instant;
|
self.data.last_collection_time = current_instant;
|
||||||
|
|
|
@ -587,7 +587,7 @@ fn get_default_widget(matches: &clap::ArgMatches<'static>, config: &Config) -> a
|
||||||
return app::WidgetPosition::Process;
|
return app::WidgetPosition::Process;
|
||||||
} else if let Some(flags) = &config.flags {
|
} else if let Some(flags) = &config.flags {
|
||||||
if let Some(default_widget) = &flags.default_widget {
|
if let Some(default_widget) = &flags.default_widget {
|
||||||
match default_widget.to_lowercase().as_str() {
|
match default_widget.as_str() {
|
||||||
"cpu_default" => {
|
"cpu_default" => {
|
||||||
return app::WidgetPosition::Cpu;
|
return app::WidgetPosition::Cpu;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue