mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-21 07:43:50 +02:00
improve sweeping logic
This commit is contained in:
@@ -103,6 +103,12 @@ const gameLog = {
|
||||
return 0;
|
||||
};
|
||||
gamelogDatabase.sort(compareByCreatedAt);
|
||||
if (gamelogDatabase.length > dbVars.maxTableSize) {
|
||||
gamelogDatabase.splice(
|
||||
0,
|
||||
gamelogDatabase.length - dbVars.maxTableSize
|
||||
);
|
||||
}
|
||||
return gamelogDatabase;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user