mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-25 12:10:03 +00:00
fix peek table bug with new portmon code
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@809 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
d484bcd750
commit
91ca82eb3b
@ -1,5 +1,8 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
|
2006-12-10
|
||||||
|
* Fix peek table bug with new portmon code.
|
||||||
|
|
||||||
2006-12-09
|
2006-12-09
|
||||||
* Replaced hash module used by libtcp-portmon with GLib's GHashTable,
|
* Replaced hash module used by libtcp-portmon with GLib's GHashTable,
|
||||||
due to licensing issue noted by Fedora Core packagers.
|
due to licensing issue noted by Fedora Core packagers.
|
||||||
|
@ -167,7 +167,7 @@ void rebuild_tcp_port_monitor_peek_table(
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
/* zero out the peek array */
|
/* zero out the peek array */
|
||||||
memset( p_monitor->p_peek, 0, g_hash_table_size (p_monitor->hash) * sizeof(tcp_connection_t *) );
|
memset( p_monitor->p_peek, 0, p_monitor->max_port_monitor_connections * sizeof(tcp_connection_t *) );
|
||||||
|
|
||||||
for ( p_node=p_monitor->connection_list.p_head; p_node!=NULL; p_node=p_node->p_next, i++ )
|
for ( p_node=p_monitor->connection_list.p_head; p_node!=NULL; p_node=p_node->p_next, i++ )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user