1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

rotate every 50MB

This commit is contained in:
FunkyFr3sh 2023-09-14 22:48:56 +02:00
parent b1600d5d51
commit 587e461ea5

View File

@ -187,7 +187,7 @@ void dbg_printf(const char* fmt, ...)
EnterCriticalSection(&cs); EnterCriticalSection(&cs);
if (g_log_file && ftell(g_log_file) >= 1024 * 1024 * 100) /* rotate every 100MB */ if (g_log_file && ftell(g_log_file) >= 1024 * 1024 * 50) /* rotate every 50MB */
{ {
char filename[MAX_PATH] = { 0 }; char filename[MAX_PATH] = { 0 };
_snprintf(filename, sizeof(filename) - 1, "cnc-ddraw-%d.log", g_log_rotate ? 3 : 2); _snprintf(filename, sizeof(filename) - 1, "cnc-ddraw-%d.log", g_log_rotate ? 3 : 2);