I can't spell.
This commit is contained in:
parent
d9a0d32c1f
commit
8c7b9dab35
|
@ -0,0 +1,37 @@
|
|||
# To-Do List
|
||||
|
||||
* ~~Get each function working as a POC~~
|
||||
|
||||
* ~~Separate each component for readability, finalize project structure~~
|
||||
|
||||
* ~~Refreshing - how are we doing that? Are we allowing individual refresh periods per component?~~
|
||||
|
||||
* Write tui display, charting
|
||||
|
||||
* Keybindings
|
||||
|
||||
* Test for Windows support
|
||||
|
||||
* Efficiency!!! Make sure no wasted hashmaps, use references, etc.
|
||||
|
||||
## Planned features: (copy of gotop)
|
||||
|
||||
* CPU usage monitor
|
||||
|
||||
* Total disk usage
|
||||
|
||||
* Memory usage
|
||||
|
||||
* Temperature
|
||||
|
||||
* Processes
|
||||
|
||||
* Network usage
|
||||
|
||||
## Other possible features
|
||||
|
||||
* Potentially process managing? Depends on the libraries...
|
||||
|
||||
* Rearranging?
|
||||
|
||||
* Filtering in processes along with sorting
|
|
@ -45,7 +45,7 @@ fn get_ordering<T : std::cmp::PartialOrd>(a_val : T, b_val : T, reverse_order :
|
|||
|
||||
async fn cpu_usage(process : heim::process::Process) -> heim::process::ProcessResult<(heim::process::Process, heim_common::units::Ratio)> {
|
||||
let usage_1 = process.cpu_usage().await?;
|
||||
futures_timer::Delay::new(std::time::Duration::from_millis(100)).await?;
|
||||
futures_timer::Delay::new(std::time::Duration::from_millis(150)).await?;
|
||||
let usage_2 = process.cpu_usage().await?;
|
||||
|
||||
Ok((process, usage_2 - usage_1))
|
||||
|
|
Loading…
Reference in New Issue