]> git.proxmox.com Git - pve-common.git/commit - src/PVE/ProcFSTools.pm
Add cpu core count to /nodes/{id}/status API result
authorMike Beattie <mike@ethernal.org>
Fri, 29 May 2020 10:58:52 +0000 (22:58 +1200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 17:47:20 +0000 (19:47 +0200)
commitddcdc5eed7c3b40fcb16e3069bf253f46438bf7b
treee62804d3023197e49b0d7fb74b99698bd48184e0
parentaa91ae3d1b053599d3a48f7f5b79df608a52ab4c
Add cpu core count to /nodes/{id}/status API result

This is useful for when collecting data for Guest OS licensing (Microsoft)
where physical core count matters, not socket or thread count.

The "cpus" value counts threads when Hyperthreading is enabled.

Signed-off-by: Mike Beattie <mike@ethernal.org>
src/PVE/ProcFSTools.pm