atproto relay implementation in zig zlay.waow.tech

fix: use mallinfo instead of mallinfo2 for older glibc compat

the deploy target's glibc doesn't have mallinfo2 (needs 2.33+).
mallinfo uses int fields (cap at 2 GiB) but sufficient for
distinguishing leak vs fragmentation patterns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+3 -1
+3 -1
src/broadcaster.zig
··· 683 683 } else |_| {} 684 684 685 685 // glibc malloc arena stats — distinguishes in-use heap from fragmentation 686 - const mi = malloc_h.mallinfo2(); 686 + // uses mallinfo (not mallinfo2) for older glibc compat; int fields cap at 2 GiB 687 + // but that's enough to distinguish leak vs fragmentation patterns 688 + const mi = malloc_h.mallinfo(); 687 689 std.fmt.format(w, 688 690 \\# TYPE relay_malloc_arena_bytes gauge 689 691 \\# HELP relay_malloc_arena_bytes total bytes claimed from OS by malloc