From 66d57c74ba8110113ab7dbc6a9936db500200769 Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Sat, 19 Nov 2005 05:54:11 +0000 Subject: [PATCH] typo fixes, no functionality changes git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@422 7f574dfc-610e-0410-a909-a81674777703 --- src/libtcp-portmon.c | 6 +++--- src/libtcp-portmon.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libtcp-portmon.c b/src/libtcp-portmon.c index 33e5ee65..a8434233 100644 --- a/src/libtcp-portmon.c +++ b/src/libtcp-portmon.c @@ -350,7 +350,7 @@ void maintain_tcp_port_monitor_hash( #ifdef HASH_DEBUG fprintf(stderr,"--- num vacated is %d, vacated factor is %.3f\n", p_monitor->hash.vacated, vacated_load ); #endif - if ( vacated_load <= TCP_CONNECIION_HASH_MAX_VACATED_RATIO ) + if ( vacated_load <= TCP_CONNECTION_HASH_MAX_VACATED_RATIO ) { /* hash is fine and needs no rebalancing */ return; @@ -437,7 +437,7 @@ void show_connection_to_tcp_port_monitor( /* it's already in the hash. reset the age of the connection. */ if ( p_connection != NULL ) { - p_connection->age = TCP_CONNECIION_STARTING_AGE; + p_connection->age = TCP_CONNECTION_STARTING_AGE; } return; @@ -468,7 +468,7 @@ void show_connection_to_tcp_port_monitor( return; } - p_node->connection.age = TCP_CONNECIION_STARTING_AGE; + p_node->connection.age = TCP_CONNECTION_STARTING_AGE; p_node->p_next = NULL; /* insert it into the monitor's hash table */ diff --git a/src/libtcp-portmon.h b/src/libtcp-portmon.h index 7e8d1bf5..c9f4aafd 100644 --- a/src/libtcp-portmon.h +++ b/src/libtcp-portmon.h @@ -55,8 +55,8 @@ #define TCP_CONNECTION_HASH_SIZE_DEFAULT 512 /* connection hash size default -- must be a power of two */ #define TCP_CONNECTION_HASH_SIZE_MAX 65536 /* connection hash size maximum -- must be a power of two */ #define TCP_CONNECTION_HASH_MAX_LOAD_RATIO 0.5 /* disallow inserts after this load ratio is exceeded */ -#define TCP_CONNECIION_HASH_MAX_VACATED_RATIO 0.25 /* rebalance hash after this ratio of vacated slots is exceeded */ -#define TCP_CONNECIION_STARTING_AGE 1 /* connection deleted if unseen again after this # of refreshes */ +#define TCP_CONNECTION_HASH_MAX_VACATED_RATIO 0.25 /* rebalance hash after this ratio of vacated slots is exceeded */ +#define TCP_CONNECTION_STARTING_AGE 1 /* connection deleted if unseen again after this # of refreshes */ /* ---------------------------------------------------------------------------------------- * The tcp port monitor collection also contains a hash to track the monitors it contains.