Update StatisticsHandler.cs

pull/3677/head
2dust 2023-04-12 15:30:07 +08:00
parent d58861ab88
commit 92baf9025a
1 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,8 @@ namespace v2rayN.Handler
private void Init()
{
SqliteHelper.Instance.Execute($"delete from ServerStatItem where indexId not in ( select indexId from ProfileItem )");
long ticks = DateTime.Now.Date.Ticks;
SqliteHelper.Instance.Execute($"update ServerStatItem set todayUp = 0,todayDown=0,dateNow={ticks} where dateNow<>{ticks}");