mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-04-08 17:05:59 +02:00
Placeholder fix for lack of total network on Windows.
This commit is contained in:
parent
98ccc70743
commit
1ab018b7be
@ -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…
x
Reference in New Issue
Block a user