Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > d3da47e473396ce88b22c4103ac14adc > files > 5

iftop-0.17-12.fc13.src.rpm

Backported patch from Max Alekseyev <relf@os2.ru> for iftop >= 0.17, which
fixes lines drives going crazy if order is frozen. For further information,
please have a look to Debian bug ID #315734.

--- iftop-0.17/ui.c			2010-11-18 22:59:02.017809919 +0100
+++ iftop-0.17/ui.c.frozen-order	2010-11-18 23:01:11.124883438 +0100
@@ -446,6 +446,7 @@
     hash_node_type* n = NULL;
     while(hash_next_item(screen_hash, &n) == HASH_STATUS_OK) {
         host_pair_line* hpl = (host_pair_line*)n->rec;
+        hpl->total_recv = hpl->total_sent = 0;
         memset(hpl->recv, 0, sizeof(hpl->recv));
         memset(hpl->sent, 0, sizeof(hpl->sent));
     }