diff options
author | bigbear <ns@bigbear.dk> | 2024-02-08 02:41:28 +0100 |
---|---|---|
committer | bigbear <ns@bigbear.dk> | 2024-02-08 19:52:53 +0100 |
commit | 122ec6ae462b5608f61ecc5734b0f0b20eb898c4 (patch) | |
tree | ba47d59c7c76bda51f6efea1f78be88ba65da804 /hardinfo2 | |
parent | 755c300d246c872c406f3a7e123d4cdd0d7c1f17 (diff) |
PR665 - fix numa node uninitialized
Diffstat (limited to 'hardinfo2')
-rw-r--r-- | hardinfo2/cpu_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hardinfo2/cpu_util.c b/hardinfo2/cpu_util.c index 30e11458..acbe63db 100644 --- a/hardinfo2/cpu_util.c +++ b/hardinfo2/cpu_util.c @@ -101,6 +101,7 @@ int cpu_procs_cores_threads_nodes(int *p, int *c, int *t, int *n) *t = cpubits_count(threads); *c = cpubits_count(cores); *p = cpubits_count(packs); + *n = 1; g_free(tmp); g_file_get_contents("/sys/devices/system/node/possible", &tmp, NULL, NULL); |