Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update timeshift_filemgr.c
It seems that in currently the timeshift_unlimited_period boolean is completely ignored when it comes to taking action on removing files or reporting a full buffer. This small patch should fix that, so that when the timeshift_unlimited_period boolean is set to true, tvheadend no longer evaluates the period of the current timeshift.
  • Loading branch information
jdierkse authored and perexg committed Jan 15, 2015
1 parent 2820a7c commit fc57f52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/timeshift/timeshift_filemgr.c
Expand Up @@ -208,7 +208,8 @@ timeshift_file_t *timeshift_filemgr_get ( timeshift_t *ts, int create )
timeshift_filemgr_close(tsf_tl);

/* Check period */
if (ts->max_time && tsf_hd && tsf_tl) {
if (!timeshift_unlimited_period &&
ts->max_time && tsf_hd && tsf_tl) {
time_t d = (tsf_tl->time - tsf_hd->time) * TIMESHIFT_FILE_PERIOD;
if (d > (ts->max_time+5)) {
if (!tsf_hd->refcount) {
Expand Down

0 comments on commit fc57f52

Please sign in to comment.