summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/recording.c b/recording.c
index 2e3676a3..bcbfd9f6 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.81 2003/08/15 15:23:10 kls Exp $
+ * $Id: recording.c 1.82 2003/08/17 09:10:46 kls Exp $
*/
#include "recording.h"
@@ -95,7 +95,8 @@ void AssertFreeDiskSpace(int Priority)
// a file, or mark a file for removal ("delete" it), so that
// it will get removed during the next call.
static time_t LastFreeDiskCheck = 0;
- if (time(NULL) - LastFreeDiskCheck > DISKCHECKDELTA) {
+ int Factor = (Priority == -1) ? 10 : 1;
+ if (time(NULL) - LastFreeDiskCheck > DISKCHECKDELTA / Factor) {
if (!VideoFileSpaceAvailable(MINDISKSPACE)) {
// Make sure only one instance of VDR does this:
cLockFile LockFile(VideoDirectory);
@@ -113,7 +114,7 @@ void AssertFreeDiskSpace(int Priority)
r = Recordings.Next(r);
}
if (r0 && r0->Remove()) {
- LastFreeDiskCheck += REMOVELATENCY;
+ LastFreeDiskCheck += REMOVELATENCY / Factor;
return;
}
}