diff options
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -206,9 +206,9 @@ int main( int argc, char **argv ) if ( remaining % 30 < 10 ) { warn_showDefaultWarning( usr, WARN_LOGOUT_LOW, remaining ); } - CAP_SLEEP( remaining - ( ( remaining - 30 ) / 60 * 60 + 2 ) ); + CAP_SLEEP( ( remaining % 30 ) - 2 ); } else { - CAP_SLEEP( remaining - 299 ); + CAP_SLEEP( remaining - 305 ); } usr->logoutTime = NOW + remaining; } |