|
|
@ -26,7 +26,7 @@ impl Block for CpuBlock { |
|
|
|
let load_percentage = 100.0 * cpu.user; |
|
|
|
let load_percentage = 100.0 * cpu.user; |
|
|
|
|
|
|
|
|
|
|
|
let update = BlockUpdate::Single( |
|
|
|
let update = BlockUpdate::Single( |
|
|
|
BlockInfo::from_unnamed(format!(" \u{f3fd}{:>5.2}% ", load_percentage)).build(), |
|
|
|
BlockInfo::from_main(format!(" \u{f3fd}{:>5.2}% ", load_percentage)).build(), |
|
|
|
); |
|
|
|
); |
|
|
|
update_s.send(update).unwrap(); |
|
|
|
update_s.send(update).unwrap(); |
|
|
|
} |
|
|
|
} |
|
|
|