This commit is contained in:
blacktwin 2017-11-13 12:53:33 -05:00 committed by GitHub
parent 53f418c64f
commit 7861141c30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,10 +82,10 @@ def kill_session(user):
if TIME_LIMIT[username]['d']:
total_time += TIME_LIMIT[username]['d'] * (24 * 60 * 60)
if TIME_LIMIT[username]['m']:
total_time += TIME_LIMIT[username]['m'] * (60 * 60)
if TIME_LIMIT[username]['h']:
total_time += TIME_LIMIT[username]['h'] * 60
total_time += TIME_LIMIT[username]['h'] * (60 * 60)
if TIME_LIMIT[username]['m']:
total_time += TIME_LIMIT[username]['m'] * 60
if get_get_history(username) > total_time: