c622036c56159093f50a42d9bfeb78bdcbcd2e14
[openwrt.git] / package / network / utils / iftop / patches / 002-debian_frozen_order.patch
1 --- a/ui.c
2 +++ b/ui.c
3 @@ -446,6 +446,7 @@ void screen_hash_clear() {
4      hash_node_type* n = NULL;
5      while(hash_next_item(screen_hash, &n) == HASH_STATUS_OK) {
6          host_pair_line* hpl = (host_pair_line*)n->rec;
7 +        hpl->total_recv = hpl->total_sent = 0;
8          memset(hpl->recv, 0, sizeof(hpl->recv));
9          memset(hpl->sent, 0, sizeof(hpl->sent));
10      }