1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-08 06:08:20 -05:00

fix client history issue with empty database

This commit is contained in:
RaidMax 2021-09-10 11:27:46 -05:00
parent 312a40b99f
commit d4f505255c

View File

@ -50,7 +50,7 @@ namespace WebfrontCore.ViewComponents
{ {
counts = counts.Union(server.ClientHistory counts = counts.Union(server.ClientHistory
.Select(history => history.ToClientCountSnapshot()).Where(history => .Select(history => history.ToClientCountSnapshot()).Where(history =>
history.Time > clientHistory.ClientCounts.Last().Time)); history.Time > (clientHistory.ClientCounts.LastOrDefault()?.Time ?? DateTime.MinValue)));
} }
serverInfo.Add(new ServerInfo() serverInfo.Add(new ServerInfo()