Changed DELETEDLIFETIME to 300

This commit is contained in:
Klaus Schmidinger 2006-01-03 11:39:48 +01:00
parent e9e8241d0d
commit f00372190d
2 changed files with 7 additions and 3 deletions

View File

@ -3981,7 +3981,11 @@ Video Disk Recorder Revision History
recordings that need to be removed (reported by Carsten Koch).
- Fixed handling the DELETEDLIFETIME when removing deleted recordings. Now
a deleted recording is retained at least DELETEDLIFETIME seconds before
actually removing it (unless a new recording requires the disk space).
actually removing it.
The value of DELETEDLIFETIME has been changed to 300. So after (possibly
inadvertently) deleting a recording, there will be at least 5 minutes
in which it can be recovered (unless a new recording immediately requires
the disk space). The count starts again at 0 every time VDR is started.
- Fixed a possible crash when displaying the "Low disk space!" message from
a background thread (thanks to Christof Steininger).
- Fixed handling OSD areas that have invalid sizes (thanks to Marco Schlüßler).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: recording.c 1.130 2005/12/28 12:19:16 kls Exp $
* $Id: recording.c 1.131 2006/01/03 11:36:12 kls Exp $
*/
#include "recording.h"
@ -49,7 +49,7 @@
#define MINDISKSPACE 1024 // MB
#define REMOVECHECKDELTA 60 // seconds between checks for removing deleted files
#define DELETEDLIFETIME 3600 // seconds after which a deleted recording will be actually removed
#define DELETEDLIFETIME 300 // seconds after which a deleted recording will be actually removed
#define DISKCHECKDELTA 100 // seconds between checks for free disk space
#define REMOVELATENCY 10 // seconds to wait until next check after removing a file