summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-05-13 16:16:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-05-13 16:16:56 +0200
commit5d34487621012519cc59797f16935049e1be0b25 (patch)
tree0dfb01c97db508938121e16efbcdfdca0dab214b /recording.c
parent820de6bf5987a58f6ee06d7a9df5ebd89fb6cb90 (diff)
downloadvdr-5d34487621012519cc59797f16935049e1be0b25.tar.gz
vdr-5d34487621012519cc59797f16935049e1be0b25.tar.bz2
Fixed deleting small files
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index 49074524..2eba90b4 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.7 2000/04/30 10:22:13 kls Exp $
+ * $Id: recording.c 1.8 2000/05/13 16:16:56 kls Exp $
*/
#define _GNU_SOURCE
@@ -61,7 +61,6 @@ void AssertFreeDiskSpace(void)
// it will get removed during the next call.
static time_t LastFreeDiskCheck = 0;
if (time(NULL) - LastFreeDiskCheck > DISKCHECKDELTA) {
- LastFreeDiskCheck = time(NULL);
if (LowDiskSpace()) {
// Remove the oldest file that has been "deleted":
cRecordings Recordings;
@@ -97,6 +96,7 @@ void AssertFreeDiskSpace(void)
// Unable to free disk space, but there's nothing we can do about that...
esyslog(LOG_ERR, "low disk space, but no recordings to delete");
}
+ LastFreeDiskCheck = time(NULL);
}
}