mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-27 15:44:17 +02:00
[skip travis] Some notes and readme changes... and an additional commit before starting next feature.
This commit is contained in:
parent
0c48c5973f
commit
ccf58bace9
@ -26,6 +26,8 @@ Features of bottom include:
|
|||||||
|
|
||||||
- Maximizing of widgets of interest.
|
- Maximizing of widgets of interest.
|
||||||
|
|
||||||
|
Details about each widget can be found [here](./docs/widgets.md).
|
||||||
|
|
||||||
The compatibility of each widget and operating systems are, as of version 0.1.0, as follows:
|
The compatibility of each widget and operating systems are, as of version 0.1.0, as follows:
|
||||||
|
|
||||||
| OS | CPU | Memory | Disks | Temperature | Processes | Networks |
|
| OS | CPU | Memory | Disks | Temperature | Processes | Networks |
|
||||||
|
@ -117,7 +117,9 @@ impl DataState {
|
|||||||
// CPU
|
// CPU
|
||||||
self.data.cpu = cpu::get_cpu_data_list(&self.sys);
|
self.data.cpu = cpu::get_cpu_data_list(&self.sys);
|
||||||
|
|
||||||
// Processes
|
// Processes. This is the longest part of the harvesting process... changing this might be
|
||||||
|
// good in the future. What was tried already:
|
||||||
|
// * Splitting the internal part into multiple scoped threads (dropped by ~.01 seconds, but upped usage)
|
||||||
if let Ok(process_list) = processes::get_sorted_processes_list(
|
if let Ok(process_list) = processes::get_sorted_processes_list(
|
||||||
&self.sys,
|
&self.sys,
|
||||||
&mut self.prev_idle,
|
&mut self.prev_idle,
|
||||||
|
@ -67,7 +67,7 @@ pub async fn get_temperature_data(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// By default, sort temperature, then by alphabetically! Allow for configuring this...
|
// By default, sort temperature, then by alphabetically!
|
||||||
|
|
||||||
// Note we sort in reverse here; we want greater temps to be higher priority.
|
// Note we sort in reverse here; we want greater temps to be higher priority.
|
||||||
temperature_vec.sort_by(|a, b| match a.temperature.partial_cmp(&b.temperature) {
|
temperature_vec.sort_by(|a, b| match a.temperature.partial_cmp(&b.temperature) {
|
||||||
|
@ -227,8 +227,6 @@ fn main() -> error::Result<()> {
|
|||||||
|
|
||||||
// Convert all data into tui-compliant components
|
// Convert all data into tui-compliant components
|
||||||
|
|
||||||
// TODO: [OPT] MT the conversion step.
|
|
||||||
|
|
||||||
// Network
|
// Network
|
||||||
let network_data = convert_network_data_points(&app.data_collection);
|
let network_data = convert_network_data_points(&app.data_collection);
|
||||||
app.canvas_data.network_data_rx = network_data.rx;
|
app.canvas_data.network_data_rx = network_data.rx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user