mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
New patch version, new tarball. Another error case dataset, wrong cap, wrong max mod
size, derived mod size 2gb, listed cap 8, but 2 slots, ie, 2gb x 2 == 4. Made this retain the listed size, but adds (check) to it because either max mod size is wrong or cap is wrong.
This commit is contained in:
parent
a19125c8c7
commit
33966eb988
15
inxi
15
inxi
|
@ -3,7 +3,7 @@
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### Version: 2.1.98
|
#### Version: 2.1.98
|
||||||
#### Date: 2014-08-17
|
#### Date: 2014-08-17
|
||||||
#### Patch Number: 00
|
#### Patch Number: 01
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -8534,12 +8534,21 @@ get_ram_data()
|
||||||
aArrayData[m,"maxModuleSize"] = 0
|
aArrayData[m,"maxModuleSize"] = 0
|
||||||
# print "yes"
|
# print "yes"
|
||||||
}
|
}
|
||||||
|
|
||||||
## prep for output ##
|
## prep for output ##
|
||||||
if (aArrayData[m,"maxModuleSize"] == 0 ){
|
if (aArrayData[m,"maxModuleSize"] == 0 ){
|
||||||
aArrayData[m,"maxModuleSize"]=""
|
aArrayData[m,"maxModuleSize"]=""
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
# case where listed max cap is too big for actual slots x max cap, eg:
|
||||||
|
# listed max cap, 8gb, max mod 2gb, slots 2
|
||||||
|
if ( estCap == "" && aArrayData[m,"maxModuleSize"] > 0 ) {
|
||||||
|
if ( int(workingMaxCap) > int(aArrayData[m,"maxModuleSize"]) * aArrayData[m,"deviceCount16"] ) {
|
||||||
|
estCap=" (check)"
|
||||||
|
if ( deBugger1 == "true" ){
|
||||||
|
print "G"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (aArrayData[m,"maxModuleSize"] > 1023 ) {
|
if (aArrayData[m,"maxModuleSize"] > 1023 ) {
|
||||||
aArrayData[m,"maxModuleSize"]=aArrayData[m,"maxModuleSize"] / 1024 " GB"
|
aArrayData[m,"maxModuleSize"]=aArrayData[m,"maxModuleSize"] / 1024 " GB"
|
||||||
}
|
}
|
||||||
|
@ -8566,10 +8575,12 @@ get_ram_data()
|
||||||
# we only want a max 2 decimal places, this trick gives 0 to 2
|
# we only want a max 2 decimal places, this trick gives 0 to 2
|
||||||
workingMaxCap=gensub(/([0-9]+\.[0-9][0-9]).*/,"\\1",1,workingMaxCap)
|
workingMaxCap=gensub(/([0-9]+\.[0-9][0-9]).*/,"\\1",1,workingMaxCap)
|
||||||
workingMaxCap = workingMaxCap unit estCap
|
workingMaxCap = workingMaxCap unit estCap
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
workingMaxCap == ""
|
workingMaxCap == ""
|
||||||
}
|
}
|
||||||
|
|
||||||
print aArrayData[m,"data-type"] "," aArrayData[m,"handle"] "," aArrayData[m,"location"] "," workingMaxCap "," aArrayData[m,"deviceCount16"] "," aArrayData[m,"use"] "," aArrayData[m,"errorCorrection"] "," aArrayData[m,"maxModuleSize"] estMod "," aArrayData[m,"voltage5"]
|
print aArrayData[m,"data-type"] "," aArrayData[m,"handle"] "," aArrayData[m,"location"] "," workingMaxCap "," aArrayData[m,"deviceCount16"] "," aArrayData[m,"use"] "," aArrayData[m,"errorCorrection"] "," aArrayData[m,"maxModuleSize"] estMod "," aArrayData[m,"voltage5"]
|
||||||
# print device rows next
|
# print device rows next
|
||||||
for ( j=0;j<=100;j++ ) {
|
for ( j=0;j<=100;j++ ) {
|
||||||
|
|
|
@ -1,3 +1,18 @@
|
||||||
|
=====================================================================================
|
||||||
|
Version: 2.1.98
|
||||||
|
Patch Version: 01
|
||||||
|
Script Date: 2014-08-17
|
||||||
|
-----------------------------------
|
||||||
|
Changes:
|
||||||
|
-----------------------------------
|
||||||
|
New patch version, new tarball. Another error case dataset, wrong cap, wrong max mod
|
||||||
|
size, derived mod size 2gb, listed cap 8, but 2 slots, ie, 2gb x 2 == 4. Made this
|
||||||
|
retain the listed size, but adds (check) to it because either max mod size is wrong
|
||||||
|
or cap is wrong.
|
||||||
|
|
||||||
|
-----------------------------------
|
||||||
|
-- Harald Hope - Sun, 17 Aug 2014 19:40:46 -0700
|
||||||
|
|
||||||
=====================================================================================
|
=====================================================================================
|
||||||
Version: 2.1.98
|
Version: 2.1.98
|
||||||
Patch Version: 00
|
Patch Version: 00
|
||||||
|
|
Loading…
Reference in a new issue