1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00

fixed minor connection limit issue

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@379 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2005-11-09 00:40:04 +00:00
parent 88716cfe44
commit 5a1d151a58

View File

@ -425,7 +425,7 @@ void show_connection_to_tcp_port_monitor(
* connection limit. Future versions should probably allow the client to set the hash size
* and load limits and/or provide for automatic resizing of hashes. */
if ( p_monitor->hash.size / p_monitor->hash.positions > TCP_CONNECTION_HASH_MAX_LOAD_PCT )
if ( (double)p_monitor->hash.size / (double)p_monitor->hash.positions > TCP_CONNECTION_HASH_MAX_LOAD_PCT )
{
/* hash exceeds our load limit is now "full" */
return;