git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@379
7f574dfc-610e-0410-a909-
a81674777703
* 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;