1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-22 13:10:26 -05:00

Adjustments to stats to support zombie client

This commit is contained in:
RaidMax
2023-05-09 21:14:13 -05:00
parent baca4f1797
commit ef4033bcb7
3 changed files with 4 additions and 3 deletions

View File

@ -148,7 +148,7 @@ namespace Stats.Helpers
public static Expression<Func<EFClientStatistics, bool>> GetRankingFunc(int minPlayTime, TimeSpan expiration, double? zScore = null,
long? serverId = null)
{
var oldestStat = DateTimeOffset.UtcNow.Subtract(expiration);
var oldestStat = DateTime.UtcNow.Subtract(expiration);
return stats => (serverId == null || stats.ServerId == serverId) &&
stats.UpdatedAt >= oldestStat &&
stats.Client.Level != EFClient.Permission.Banned &&