From 6ee766df870bb9c252115336d2917a76eca57855 Mon Sep 17 00:00:00 2001 From: windows11 Date: Mon, 18 Oct 2021 15:42:23 +0800 Subject: [PATCH] not remove json file --- server/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/main.cpp b/server/src/main.cpp index 57e59ed..23ee5a4 100644 --- a/server/src/main.cpp +++ b/server/src/main.cpp @@ -318,7 +318,9 @@ void CMain::JSONUpdateThread(void *pUser) fs_rename(aJSONFileTmp, pConfig->m_aJSONFile); thread_sleep(1000); } - fs_remove(pConfig->m_aJSONFile); + // support by: https://cpp.la. don't remove month traffic record + // it will cause quiescence + //fs_remove(pConfig->m_aJSONFile); } int CMain::ReadConfig()