summaryrefslogtreecommitdiff
path: root/src/libsink
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-02-22 10:29:15 -0500
committerAndrew Opalach <andrew@akon.city> 2025-02-22 10:29:15 -0500
commit000ce1f671d1f05b76202fd128e272e4ac9da683 (patch)
tree315812307bd8c5b7ab0efedfd29a43e52c270989 /src/libsink
parentc7f00bb4a70e94a5b0ded8255e34e094e884f7a0 (diff)
downloadcamu-000ce1f671d1f05b76202fd128e272e4ac9da683.tar.gz
camu-000ce1f671d1f05b76202fd128e272e4ac9da683.tar.bz2
camu-000ce1f671d1f05b76202fd128e272e4ac9da683.zip
Support new stl_global_init()
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/libsink')
-rw-r--r--src/libsink/sink.c8
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