From 9719ecb00e716371f5ba0b35786d465c663274ae Mon Sep 17 00:00:00 2001 From: bing Date: Wed, 27 May 2026 20:04:01 +0800 Subject: [PATCH] fix(bindings): misordering of print for cpu count title --- bindings/napi/root.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/napi/root.zig b/bindings/napi/root.zig index 53bfe33ba..6ceceb040 100644 --- a/bindings/napi/root.zig +++ b/bindings/napi/root.zig @@ -20,8 +20,8 @@ fn init(old_ref_count: u32) !void { var cpu_count: u64 = options.thread_count; if (options.thread_count == 0) { - std.debug.print("Note: no -Dthread-count set, will use runtime CPU count minus 1: {}\n", .{cpu_count}); cpu_count = @max((try std.Thread.getCpuCount()) - 1, 1); + std.debug.print("Note: no -Dthread-count set, will use runtime CPU count minus 1: {}\n", .{cpu_count}); } const n_workers = @min(cpu_count, @import("bls").ThreadPool.MAX_WORKERS);