just testing stuff

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5455 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2019-05-04 20:57:00 +00:00
parent 3246a96aa8
commit 78c9daaf7c
1 changed files with 6 additions and 2 deletions

View File

@ -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);