mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-23 21:55:11 +02:00
Set up more file hierarchy.
This commit is contained in:
parent
2c53ab09a9
commit
c8bbf5850c
@ -1,4 +1,3 @@
|
|||||||
use std::collections::BTreeMap;
|
|
||||||
use sysinfo::{ProcessExt, ProcessStatus, RefreshKind, System, SystemExt};
|
use sysinfo::{ProcessExt, ProcessStatus, RefreshKind, System, SystemExt};
|
||||||
|
|
||||||
// TODO: Fix this - CPU Up, and CPU Down!
|
// TODO: Fix this - CPU Up, and CPU Down!
|
||||||
@ -73,7 +72,7 @@ fn draw_sorted_processes(sorting_method: ProcessSorting, reverse_order: bool, sy
|
|||||||
ProcessSorting::Status => {}
|
ProcessSorting::Status => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut formatted_vector : Vec<ProcessInfo> = Vec::new();
|
let mut formatted_vector: Vec<ProcessInfo> = Vec::new();
|
||||||
for process in &mut process_vector {
|
for process in &mut process_vector {
|
||||||
formatted_vector.push(ProcessInfo {
|
formatted_vector.push(ProcessInfo {
|
||||||
cpu_usage: process.cpu_usage(),
|
cpu_usage: process.cpu_usage(),
|
||||||
|
0
src/widgets/cpu.rs
Normal file
0
src/widgets/cpu.rs
Normal file
0
src/widgets/disks.rs
Normal file
0
src/widgets/disks.rs
Normal file
0
src/widgets/mem.rs
Normal file
0
src/widgets/mem.rs
Normal file
0
src/widgets/network.rs
Normal file
0
src/widgets/network.rs
Normal file
0
src/widgets/processes.rs
Normal file
0
src/widgets/processes.rs
Normal file
0
src/widgets/temp.rs
Normal file
0
src/widgets/temp.rs
Normal file
0
tests/basic_tests.rs
Normal file
0
tests/basic_tests.rs
Normal file
Loading…
x
Reference in New Issue
Block a user