Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: fix dvr_usage_count() - add DVR_RECORDING filter, fixes #2882
  • Loading branch information
perexg committed May 25, 2015
1 parent d455fcf commit 7dd98ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dvr/dvr_db.c
Expand Up @@ -349,6 +349,8 @@ dvr_usage_count(access_t *aa)
uint32_t used = 0;

LIST_FOREACH(de, &dvrentries, de_global_link) {
if (de->de_sched_state != DVR_RECORDING)
continue;
if (de->de_owner && de->de_owner[0]) {
if (!strcmp(de->de_owner, aa->aa_username ?: ""))
used++;
Expand Down

0 comments on commit 7dd98ac

Please sign in to comment.