Maintenance time calculations should be done in minutes, not seconds.

Should resolve #2336
This commit is contained in:
RealKinetix 2021-03-29 22:34:55 -07:00
parent ca58209244
commit 7d20d35375
2 changed files with 5 additions and 5 deletions

View file

@ -119,7 +119,7 @@ def _portal_maintenance():
_MAINTENANCE_COUNT += 1
if _MAINTENANCE_COUNT % (3600 * 7) == 0:
if _MAINTENANCE_COUNT % (60 * 7) == 0:
# drop database connection every 7 hrs to avoid default timeouts on MySQL
# (see https://github.com/evennia/evennia/issues/1376)
connection.close()