From 78c9daaf7cca4b4bf73628fe7510005450bea2ea Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 4 May 2019 20:57:00 +0000 Subject: [PATCH] just testing stuff git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5455 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/m_mp3.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/client/m_mp3.c b/engine/client/m_mp3.c index 912ab7d5e..253b36a5e 100644 --- a/engine/client/m_mp3.c +++ b/engine/client/m_mp3.c @@ -2991,8 +2991,12 @@ static void QDECL capture_raw_video (void *vctx, int frame, void *data, int stri if (FS_NativePath(base, ctx->fsroot, filename, sizeof(filename))) { quint64_t diskfree = 0; - if (Sys_GetFreeDiskSpace(filename, &diskfree) && diskfree < (quint64_t)1024*1024*capturethrottlesize.value) - Sys_Sleep(1); //throttle + if (Sys_GetFreeDiskSpace(filename, &diskfree)) + { + Con_DLPrintf(2, "Free Space: %"PRIu64", threshhold %"PRIu64"\n", diskfree, (quint64_t)(1024*1024*capturethrottlesize.value)) + if (diskfree < (quint64_t)(1024*1024*capturethrottlesize.value)) + Sys_Sleep(1); //throttle + } else { Con_Printf("%s: unable to query free disk space. Disabling\n", capturethrottlesize.name);