mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bsd fix, turns out at least dragonfly has /sys, but it's empty, so updated check
This commit is contained in:
parent
1e48007c62
commit
e5e50ee371
9
inxi
9
inxi
|
@ -6661,7 +6661,11 @@ get_memory_data()
|
||||||
# procs memory page disks faults cpu
|
# procs memory page disks faults cpu
|
||||||
# r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id
|
# r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id
|
||||||
# 0 0 0 21880M 6444M 924 32 11 0 822 827 0 0 853 832 463 8 3 88
|
# 0 0 0 21880M 6444M 924 32 11 0 822 827 0 0 853 832 463 8 3 88
|
||||||
|
# dragonfly
|
||||||
|
# procs memory page disks faults cpu
|
||||||
|
# r b w avm fre flt re pi po fr sr ad0 ad1 in sy cs us sy id
|
||||||
|
# 0 0 0 0 84060 30273993 2845 12742 1164 407498171 320960902 0 0 424453025 1645645889 1254348072 35 38 26
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
IGNORECASE=1
|
IGNORECASE=1
|
||||||
memory=""
|
memory=""
|
||||||
|
@ -11249,7 +11253,8 @@ print_dmidecode_error()
|
||||||
if [[ $1 == 'sys' ]];then
|
if [[ $1 == 'sys' ]];then
|
||||||
if [[ $B_FORCE_DMIDECODE == 'true' ]];then
|
if [[ $B_FORCE_DMIDECODE == 'true' ]];then
|
||||||
sysDmiError='Forcing '
|
sysDmiError='Forcing '
|
||||||
elif [[ $BSD_TYPE == '' || -d /sys ]];then
|
# dragonfly has /sys, but it's empty
|
||||||
|
elif [[ $BSD_TYPE == '' || -d /sys/devices ]];then
|
||||||
sysDmiError='No /sys/class/dmi; using '
|
sysDmiError='No /sys/class/dmi; using '
|
||||||
else
|
else
|
||||||
sysDmiError='Using '
|
sysDmiError='Using '
|
||||||
|
|
Loading…
Reference in a new issue