diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:48 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:48 +0200 |
| commit | 5a019f435eb0068b524566d9babf172d58d0e96e (patch) | |
| tree | b083dccdfbec4335a5967d50c4294f7501c77345 /src/sock | |
| parent | 4ecbf33fae730bc79c4a47e6efda615b104754ad (diff) | |
tagging ychat-0.7.9.2ychat-0.7.9.2
Diffstat (limited to 'src/sock')
| -rwxr-xr-x | src/sock/sock.cpp | 2 | ||||
| -rwxr-xr-x | src/sock/sock.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sock/sock.cpp b/src/sock/sock.cpp index 5f6ede3..42daf24 100755 --- a/src/sock/sock.cpp +++ b/src/sock/sock.cpp @@ -306,7 +306,7 @@ sock::clean_ipcache() int i_ipcachesize = wrap::CONF->get_int("httpd.ipcachesize"); int i_currentsize = size(); - if ( i_currentsize > 0 && (i_ipcachesize == 0 || i_ipcachesize >= i_currentsize) ) + if ( i_currentsize > 0 && (i_ipcachesize == 0 || i_ipcachesize <= i_currentsize) ) { wrap::system_message( SOCKCA2+tool::int2string(i_currentsize)+","+tool::int2string(i_ipcachesize)+")"); diff --git a/src/sock/sock.h b/src/sock/sock.h index 62f32ae..bb34fc8 100755 --- a/src/sock/sock.h +++ b/src/sock/sock.h @@ -21,7 +21,7 @@ using namespace std; -class sock : protected shashmap +class sock : public shashmap < string, uint32_t, self_hash<uint32_t>, equals_allocator<uint32_t> > { private: |
