Skip to content

Commit

Permalink
Fix #481 - expire.c
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Nov 18, 2023
1 parent 469dd81 commit 7f75c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/collector/expire.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,10 +619,10 @@ void ExpireProfile(channel_t *channel, dirstat_t *current_stat, uint64_t maxsize
// decrement number of files seen in this directory
expire_channel->ftsent->fts_number--;

file_removed = 1;
} else {
LogError("unlink() error in %s line %d: %s\n", __FILE__, __LINE__, strerror(errno));
}
file_removed = 1;
} else {
// we are done size-wise
// time of first file not expired = start time of channel/profile
Expand All @@ -647,10 +647,10 @@ void ExpireProfile(channel_t *channel, dirstat_t *current_stat, uint64_t maxsize
// decrement number of files seen in this directory
expire_channel->ftsent->fts_number--;

file_removed = 1;
} else {
LogError("unlink() error in %s line %d: %s\n", __FILE__, __LINE__, strerror(errno));
}
file_removed = 1;
} else {
// we are done time-wise
// time of first file not expired = start time of channel/profile
Expand Down

0 comments on commit 7f75c90

Please sign in to comment.