Changed debug option names

* --debug-json -> --debug
* --debug-modules -> --debug-icons
This commit is contained in:
2025-06-06 17:57:14 -07:00
parent c84e9698d7
commit 750a2813d3
6 changed files with 15 additions and 15 deletions

View File

@@ -125,7 +125,7 @@ impl bar_modules::BarModuleActions for UnibarModuleCpu {
thread::sleep(Duration::from_millis(1000));
self.cpu_times_sample_2 = self.read_cpu_times().expect("REASON");
if self.opts.debug_json {
if self.opts.debug {
println!("-----> CPU times sample 1 - {:#?}", self.cpu_times_sample_1);
println!("-----> CPU times sample 2 - {:#?}", self.cpu_times_sample_2);
}
@@ -152,7 +152,7 @@ impl bar_modules::BarModuleActions for UnibarModuleCpu {
// let caps = re.captures(self.procstat_str.as_str()).unwrap();
// let cpu_line = caps.get(0).unwrap().as_str();
// if self.opts.debug_json {
// if self.opts.debug {
// println!("-----> CPU line - {:#?}", cpu_line);
// }