summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index a29fd35..316aec5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}