1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-26 16:48:28 +00:00

typo fixes, no functionality changes

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@422 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2005-11-19 05:54:11 +00:00
parent d9ad03ed69
commit 66d57c74ba
2 changed files with 5 additions and 5 deletions

View File

@ -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 */

View File

@ -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.