mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-05-04 05:50:42 +00:00
Reversed CPU drawing order; this promotes average (if enabled) to draw on top.
This commit is contained in:
+1
-1
@@ -538,7 +538,7 @@ impl Painter {
|
||||
let mut dataset_vector: Vec<Dataset> = Vec::new();
|
||||
let mut cpu_entries_vec: Vec<(Style, Vec<(f64, f64)>)> = Vec::new();
|
||||
|
||||
for (itx, cpu) in cpu_data.iter().enumerate() {
|
||||
for (itx, cpu) in cpu_data.iter().enumerate().rev() {
|
||||
if app_state.cpu_state.core_show_vec[itx] {
|
||||
cpu_entries_vec.push((
|
||||
self.colours.cpu_colour_styles[(itx) % self.colours.cpu_colour_styles.len()],
|
||||
|
||||
Reference in New Issue
Block a user