From 4fb06abb4ddd1107133418a2ad70845abd43b8f5 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 1 Nov 2013 17:25:37 +0000 Subject: [PATCH] - added game stats purge function --- source/masterserver/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/masterserver/functions.php b/source/masterserver/functions.php index 7a3a37f7..280c1ebc 100644 --- a/source/masterserver/functions.php +++ b/source/masterserver/functions.php @@ -62,7 +62,7 @@ function cleanupGameStats() { // Purge completed games that are less than x minutes in duration - mysql_query( 'DELETE FROM glestserver WHERE status = 3 AND gameUUID in (SELECT gameUUID from glestgamestats where framesToCalculatePlaytime / 40 / 60 < ' . MAX_MINS_OLD_COMPLETED_GAMES . ';'); + mysql_query( 'DELETE FROM glestserver WHERE status = 3 AND gameUUID in (SELECT gameUUID from glestgamestats where framesToCalculatePlaytime / 40 / 60 < ' . MAX_MINS_OLD_COMPLETED_GAMES . ');'); // Cleanup game stats for games that are purged mysql_query( 'DELETE FROM glestgamestats WHERE gameUUID NOT IN (SELECT gameUUID from glestserver);');