diff options
author | Kelvin Zhang <zhangxp1998@gmail.com> | 2020-01-12 11:35:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-12 11:35:08 -0500 |
commit | b843e18d357a9c14cd77b58aa7995c7b40aee378 (patch) | |
tree | 8712d308c49fd1088cc1cee983ddad8a78f95af5 /src/display/ui.rs | |
parent | 21938b64859698f79447119e24dd5ae4b364b6d3 (diff) | |
parent | 358e3f0d54f429581e2d0dde001d9294ae679fcf (diff) |
Merge pull request #77 from imsnif/average
Display weighted average of bandwidth
Diffstat (limited to 'src/display/ui.rs')
-rw-r--r-- | src/display/ui.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/ui.rs b/src/display/ui.rs index e3464bb..49b6721 100644 --- a/src/display/ui.rs +++ b/src/display/ui.rs @@ -101,8 +101,8 @@ where utilization: Utilization, ip_to_host: HashMap<Ipv4Addr, String>, ) { - self.state = UIState::new(connections_to_procs, utilization); - self.ip_to_host = ip_to_host; + self.state.update(connections_to_procs, utilization); + self.ip_to_host.extend(ip_to_host); } pub fn end(&mut self) { self.terminal.clear().unwrap(); |