diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-01-26 15:25:37 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-01-26 15:25:37 +0100 |
commit | f0a4b1c4179fc38bcf359de49367ffff69a28800 (patch) | |
tree | 232f9291704c8fe7877e27938257ace55e349e67 | |
parent | 895921019c7cbf5ab136ede5087f11e0c9165419 (diff) | |
download | vdr-f0a4b1c4179fc38bcf359de49367ffff69a28800.tar.gz vdr-f0a4b1c4179fc38bcf359de49367ffff69a28800.tar.bz2 |
A message is now prompted if free disk space becomes low during recording
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | i18n.c | 11 | ||||
-rw-r--r-- | recording.c | 7 |
3 files changed, 15 insertions, 4 deletions
@@ -913,3 +913,4 @@ Video Disk Recorder Revision History whether the process succeeded or failed. - Fixed setting the LastActivity timestamp after a shutdown prompt (thanks to Sergei Haller). +- A message is now prompted if free disk space becomes low during recording. @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: i18n.c 1.47 2002/01/26 13:05:54 kls Exp $ + * $Id: i18n.c 1.48 2002/01/26 15:21:40 kls Exp $ * * Slovenian translations provided by Miha Setina <mihasetina@softhome.net> * Italian translations provided by Alberto Carraro <bertocar@tin.it> @@ -721,6 +721,15 @@ const tPhrase Phrases[] = { "", // TODO "", // TODO }, + { "Low disk space!", + "Platte beinahe voll!", + "", // TODO + "", // TODO + "", // TODO + "", // TODO + "", // TODO + "", // TODO + }, // Setup parameters: { "OSD-Language", "OSD-Sprache", diff --git a/recording.c b/recording.c index 6426f330..24ac4fb4 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.45 2002/01/26 11:57:56 kls Exp $ + * $Id: recording.c 1.46 2002/01/26 15:21:40 kls Exp $ */ #include "recording.h" @@ -15,6 +15,7 @@ #include <string.h> #include <sys/stat.h> #include <unistd.h> +#include "i18n.h" #include "interface.h" #include "tools.h" #include "videodir.h" @@ -36,7 +37,7 @@ #define DELETEDLIFETIME 1 // hours after which a deleted recording will be actually removed #define REMOVECHECKDELTA 3600 // seconds between checks for removing deleted files -#define DISKCHECKDELTA 300 // seconds between checks for free disk space +#define DISKCHECKDELTA 100 // seconds between checks for free disk space #define REMOVELATENCY 10 // seconds to wait until next check after removing a file void RemoveDeletedRecordings(void) @@ -117,7 +118,7 @@ void AssertFreeDiskSpace(int Priority) return; } // 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"); + Interface->Confirm(tr("Low disk space"), 30); } LastFreeDiskCheck = time(NULL); } |