summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-11-18 16:26:50 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2000-11-18 16:26:50 +0100
commitec5f332a5b9f2f02ee2895344f68b147b19a93cc (patch)
treecf3313e123835c2e48721d14195f370ea41275ad /recording.c
parentca42f7c8f144b2e342b9df821e3b841c7766bd05 (diff)
downloadvdr-ec5f332a5b9f2f02ee2895344f68b147b19a93cc.tar.gz
vdr-ec5f332a5b9f2f02ee2895344f68b147b19a93cc.tar.bz2
Implemented a 10 seconds latency when removing files
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index 3ddf8d35..f45be963 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.20 2000/11/01 16:00:36 kls Exp $
+ * $Id: recording.c 1.21 2000/11/18 16:22:29 kls Exp $
*/
#define _GNU_SOURCE
@@ -32,6 +32,7 @@
#define MINDISKSPACE 1024 // MB
#define DISKCHECKDELTA 300 // seconds between checks for free disk space
+#define REMOVELATENCY 10 // seconds to wait until next check after removing a file
void AssertFreeDiskSpace(void)
{
@@ -51,8 +52,10 @@ void AssertFreeDiskSpace(void)
r0 = r;
r = Recordings.Next(r);
}
- if (r0 && r0->Remove())
+ if (r0 && r0->Remove()) {
+ LastFreeDiskCheck += REMOVELATENCY;
return;
+ }
}
// No "deleted" files to remove, so let's see if we can delete a recording:
if (Recordings.Load(false)) {