collect data when server offline

This commit is contained in:
RaidMax
2022-03-29 17:18:41 -05:00
parent 7dbdf87728
commit 1e67f6e86c
2 changed files with 34 additions and 27 deletions

View File

@ -11,11 +11,8 @@ namespace SharedLibraryCore.Dtos
public class ClientCountSnapshot
{
private const int UpdateInterval = 5;
public DateTime Time { get; set; }
public string TimeString => new DateTime(Time.Year, Time.Month, Time.Day, Time.Hour,
Math.Min(59, UpdateInterval * (int)Math.Round(Time.Minute / (float)UpdateInterval)), 0)
.ToString("yyyy-MM-ddTHH:mm:ssZ");
public string TimeString => Time.ToString("yyyy-MM-ddTHH:mm:ssZ");
public int ClientCount { get; set; }
public bool ConnectionInterrupted { get;set; }
public string Map { get; set; }