]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
fix: failing build of knot/common/stats.c on PowerPC and MIPS
authorJan Hák <jan.hak@nic.cz>
Tue, 23 Sep 2025 10:52:25 +0000 (12:52 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Tue, 23 Sep 2025 12:37:10 +0000 (14:37 +0200)
src/knot/common/stats.c

index c036f73aceee1a8041bbe1fa1263cd0ac2616ac0..1bdfaef58bc132d40d6c4825c926d3d972690a87 100644 (file)
@@ -127,8 +127,8 @@ int stats_server(stats_dump_ctr_f fcn, stats_dump_ctx_t *ctx)
        }
 
        DUMP_VAL(params, "zone-count", knot_zonedb_size(ctx->server->zone_db));
-       DUMP_VAL(params, "tcp-io-timeout", ctx->server->stats.tcp_io_timeout);
-       DUMP_VAL(params, "tcp-idle-timeout", ctx->server->stats.tcp_idle_timeout);
+       DUMP_VAL(params, "tcp-io-timeout", ATOMIC_GET(ctx->server->stats.tcp_io_timeout));
+       DUMP_VAL(params, "tcp-idle-timeout", ATOMIC_GET(ctx->server->stats.tcp_idle_timeout));
 
        return KNOT_EOK;
 }