# std.heap.SmpAllocator: fix getCpuCount logic · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/3246150d4589a25cd1ad762a78d2806ef1da2a95)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 3246150d4589a25cd1ad762a78d2806ef1da2a95

Requested commit: 3246150d4589a25cd1ad762a78d2806ef1da2a95

Commit: 3246150d4589a25cd1ad762a78d2806ef1da2a95

Tree: a8ebf03c19d18fcda611ef7dc4cea5b33dd0a3ac

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.heap.SmpAllocator: fix getCpuCount logic

it was always returning max_cpu_count

```

## Parents

- [88e2e60e88ebaeb46b2642830cd8cd369dc737c0](https://git.cafe/gitcafe/zig/commit/88e2e60e88ebaeb46b2642830cd8cd369dc737c0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/3246150d4589a25cd1ad762a78d2806ef1da2a95?format=markdown)
