Remove debug logging.
This commit is contained in:
parent
14b58f766a
commit
93229efb6e
@ -124,8 +124,6 @@ impl NetworkSpeedWidget {
|
|||||||
let rx_rate = cur_stat.rx_rate(&self.last_stat);
|
let rx_rate = cur_stat.rx_rate(&self.last_stat);
|
||||||
let tx_rate = cur_stat.tx_rate(&self.last_stat);
|
let tx_rate = cur_stat.tx_rate(&self.last_stat);
|
||||||
|
|
||||||
dbg!(&self.rx_history);
|
|
||||||
dbg!(&self.tx_history);
|
|
||||||
self.rx_history.push_back(rx_rate as f32);
|
self.rx_history.push_back(rx_rate as f32);
|
||||||
self.rx_history.pop_front();
|
self.rx_history.pop_front();
|
||||||
self.tx_history.push_back(tx_rate as f32);
|
self.tx_history.push_back(tx_rate as f32);
|
||||||
@ -148,7 +146,6 @@ impl Widget for NetworkSpeedWidget {
|
|||||||
} else {
|
} else {
|
||||||
("".to_string(), "".to_string())
|
("".to_string(), "".to_string())
|
||||||
};
|
};
|
||||||
eprintln!("rx_history {} tx_history {}", &rx_history, &tx_history);
|
|
||||||
data.use_pango();
|
data.use_pango();
|
||||||
data.append_full_text(&format!(
|
data.append_full_text(&format!(
|
||||||
"Rx:<tt>{}</tt>{} Tx:<tt>{}</tt>{}",
|
"Rx:<tt>{}</tt>{} Tx:<tt>{}</tt>{}",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user