mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Enable on/off for gathering network totals.
This commit is contained in:
parent
aed4e042e7
commit
ece4057efa
@ -6,7 +6,6 @@
|
||||
//! components are managed.
|
||||
|
||||
use crate::{bus::BusCommand, widgets::*};
|
||||
use lqos_bus::BusClient;
|
||||
use ratatui::prelude::*;
|
||||
use std::io::Stdout;
|
||||
use tokio::sync::mpsc::Sender;
|
||||
@ -33,9 +32,9 @@ impl TopUi {
|
||||
'c' => self.show_cpus = !self.show_cpus,
|
||||
'n' => {
|
||||
self.show_throughput_sparkline = !self.show_throughput_sparkline;
|
||||
commander.send(BusCommand::CollectTotalThroughput(
|
||||
commander.blocking_send(BusCommand::CollectTotalThroughput(
|
||||
self.show_throughput_sparkline,
|
||||
));
|
||||
)).unwrap();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user