General clean up
This commit is contained in:
parent
aeefa114e6
commit
be96618f76
@ -7,12 +7,14 @@ Simple bar written in Rust
|
||||
* A tool that returns variety of components in a string suitable to use in a
|
||||
status bar
|
||||
* Currently implemented modules:
|
||||
- weather
|
||||
- date
|
||||
- memory
|
||||
- music
|
||||
- network
|
||||
- memory
|
||||
- cpu
|
||||
- power
|
||||
- time
|
||||
- weather
|
||||
- cpu
|
||||
|
||||
# Usage
|
||||
|
||||
|
@ -74,16 +74,16 @@ impl UnibarModuleCpu {
|
||||
|
||||
// --------------------
|
||||
// cpu 242109 7 60985 6538626 8344 39138 9647 0 0 0
|
||||
// * user – time spent in user mode
|
||||
// * nice – time spent processing nice processes in user mode
|
||||
// * system – time spent executing kernel code
|
||||
// * idle – time spent idle
|
||||
// * iowait – time spent waiting for I/O
|
||||
// * irq – time spent servicing interrupts
|
||||
// * softirq – time spent servicing software interrupts
|
||||
// * steal – time stolen from a virtual machine
|
||||
// * guest – time spent running a virtual CPU for a guest operating system
|
||||
// * guest_nice – time spent running a virtual CPU for a “niced” guest operating system
|
||||
// * user - time spent in user mode
|
||||
// * nice - time spent processing nice processes in user mode
|
||||
// * system - time spent executing kernel code
|
||||
// * idle - time spent idle
|
||||
// * iowait - time spent waiting for I/O
|
||||
// * irq - time spent servicing interrupts
|
||||
// * softirq - time spent servicing software interrupts
|
||||
// * steal - time stolen from a virtual machine
|
||||
// * guest - time spent running a virtual CPU for a guest operating system
|
||||
// * guest_nice - time spent running a virtual CPU for a “niced” guest operating system
|
||||
fn read_cpu_times(&self) -> io::Result<CpuTimes> {
|
||||
let file = File::open("/proc/stat")?;
|
||||
let reader = BufReader::new(file);
|
||||
|
Loading…
x
Reference in New Issue
Block a user