Don't refresh while processing packets
This commit is contained in:
12
nethogs.cpp
12
nethogs.cpp
@@ -148,12 +148,6 @@ int process_tcp (u_char * userdata, const dp_header * header, const u_char * m_p
|
|||||||
}
|
}
|
||||||
delete packet;
|
delete packet;
|
||||||
|
|
||||||
if (needrefresh)
|
|
||||||
{
|
|
||||||
do_refresh();
|
|
||||||
needrefresh = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* we're done now. */
|
/* we're done now. */
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -191,12 +185,6 @@ int process_udp (u_char * userdata, const dp_header * header, const u_char * m_p
|
|||||||
}
|
}
|
||||||
delete packet;
|
delete packet;
|
||||||
|
|
||||||
if (needrefresh)
|
|
||||||
{
|
|
||||||
do_refresh();
|
|
||||||
needrefresh = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* we're done now. */
|
/* we're done now. */
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user