From f34b21e155d2abed2fad82b7a6b72955883cb700 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Mon, 23 Sep 2019 07:41:49 -0700 Subject: [PATCH] Use proper CPU widget at work. --- src/bin/work.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/work.rs b/src/bin/work.rs index a05a325..8f9701b 100644 --- a/src/bin/work.rs +++ b/src/bin/work.rs @@ -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)); }