mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
rotate every 50MB
This commit is contained in:
parent
b1600d5d51
commit
587e461ea5
@ -187,7 +187,7 @@ void dbg_printf(const char* fmt, ...)
|
||||
|
||||
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 };
|
||||
_snprintf(filename, sizeof(filename) - 1, "cnc-ddraw-%d.log", g_log_rotate ? 3 : 2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user