Use proper CPU widget at work.

This commit is contained in:
Bill Thiede 2019-09-23 07:41:49 -07:00
parent ccd9cf5002
commit f34b21e155

View File

@ -1,12 +1,12 @@
use chrono::NaiveTime;
use i3monkit::widgets::CpuWidget;
use i3monkit::{ColorRGB, Header, I3Protocol, WidgetCollection};
use num_cpus;
use structopt::StructOpt;
use i3xs::widgets::cpu::CpuWidget;
use i3xs::widgets::datetime::{DateTimeWidget, TimeColor};
use i3xs::widgets::network::NetworkSpeedWidget;
@ -22,7 +22,7 @@ fn main() {
let opts = Opt::from_args();
//Display all the cpu usage for each core
// Display all the cpu usage for each core
for i in 0..num_cpus::get() as u32 {
bar.push(CpuWidget::new(i));
}