Block a user
Added note and refactor code
Even this part of the code assumes multiple sections with 'DMIType'
4. But only gets 'Version'
from the first section. Since you've said "they always have the same processor model", I assume…
Added note and refactor code
Please share a sample sudo dmidecode -t1
output.
Here's what I see on test2:
root@test2:~# sudo dmidecode -t1
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.
…
disk space calculation using /sys/block/
Maybe we should fallback to /proc/diskstats
if /sys/block
is not available, @PeterSurda ?
disk space calculation using /sys/block/
We shouldn't log it, just skip it, or we should first test if the file exists or is readable to filter the obvious exceptions.
f10d0b53b0
minor fixes
3940cbdbde
refactor: encaps create/update logic in upsert
Parse dmidecode output
updated cpu_count - use dmidecode
Hi, what does it mean by "generalise the approach" in this case? Where would we be needing to copy-paste this function? Mutiple matches for "Core Count" and "Thread Count" you mean?
0e996333b2
updated cpu_count - use dmedecode
f73823cd07
removed show_public from non updatable keys
removed show_public from non updatable keys