mirror of
https://github.com/ClementTsang/bottom
synced 2025-02-15 12:48:28 +00:00
Placeholder fix for lack of total network on Windows.
This commit is contained in:
parent
98ccc70743
commit
1ab018b7be
1 changed files with 14 additions and 8 deletions
|
@ -204,16 +204,22 @@ pub fn draw_data<B: backend::Backend>(terminal: &mut Terminal<B>, app_state: &mu
|
|||
&canvas_data.network_data_tx,
|
||||
canvas_data.rx_display.clone(),
|
||||
canvas_data.tx_display.clone(),
|
||||
network_chunk[0],
|
||||
if cfg!(not(target_os = "windows")) {
|
||||
network_chunk[0]
|
||||
} else {
|
||||
bottom_chunks[0]
|
||||
},
|
||||
);
|
||||
|
||||
draw_network_labels(
|
||||
&mut f,
|
||||
app_state,
|
||||
canvas_data.total_rx_display.clone(),
|
||||
canvas_data.total_tx_display.clone(),
|
||||
network_chunk[1],
|
||||
);
|
||||
if cfg!(not(target_os = "windows")) {
|
||||
draw_network_labels(
|
||||
&mut f,
|
||||
app_state,
|
||||
canvas_data.total_rx_display.clone(),
|
||||
canvas_data.total_tx_display.clone(),
|
||||
network_chunk[1],
|
||||
);
|
||||
}
|
||||
|
||||
// Temperature table
|
||||
draw_temp_table(&mut f, app_state, &canvas_data.temp_sensor_data, middle_divided_chunk_2[0]);
|
||||
|
|
Loading…
Add table
Reference in a new issue