diff --git a/README.md b/README.md index 408a78a..017db27 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/bar_modules/bar_module_cpu.rs b/src/bar_modules/bar_module_cpu.rs index 6c49366..42d98fa 100644 --- a/src/bar_modules/bar_module_cpu.rs +++ b/src/bar_modules/bar_module_cpu.rs @@ -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 { let file = File::open("/proc/stat")?; let reader = BufReader::new(file);