diff options
Diffstat (limited to 'src/libsink')
| -rw-r--r-- | src/libsink/sink.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsink/sink.c b/src/libsink/sink.c index 4aa1d51..62bb941 100644 --- a/src/libsink/sink.c +++ b/src/libsink/sink.c @@ -568,12 +568,12 @@ static void maybe_cleanup_old_entries(struct camu_sink *sink) // We check size <= MAX_AGE in the loops because sink->lru is // not indicative of the amount of entries we have loaded. - // The most obvious reason for that is that it's incremented for - // buffer and queue operations. + // The most obvious reason being it's incremented when moving + // back and forth between two entries. As well as for buffer and + // queue operations. struct camu_sink_entry *entry; - // Handle sink->lru wrapping. This has to happen in a step - // before the no wrapping case. + // Handle sink->lru wrapping. This must happen in a step before the no wrapping case. al_array_foreach_rev(sink->entries, i, entry) { // 0 65532 65533 65534 65535 // 0 1 65533 65534 65535 |