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:
@ -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 &&
|
||||
|
Reference in New Issue
Block a user