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:
parent
312a40b99f
commit
d4f505255c
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user