patch version, trying to fix a small glitch with gawk wanting to change integers to strings.

forcing int() on relevant items.
This commit is contained in:
inxi-svn 2014-08-14 04:30:22 +00:00
parent 5f09b1555c
commit 2709f5120b
2 changed files with 20 additions and 4 deletions

10
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi
#### Version: 2.1.95
#### Date: 2014-08-13
#### Patch Number: 00
#### Patch Number: 01
########################################################################
#### SPECIAL THANKS
########################################################################
@ -8378,20 +8378,22 @@ get_ram_data()
}
#print "mms:" aMaxModuleSize[m] ":dms:" aDerivedModuleSize[m] ":mc:" a_memory[j,3]
if (aMaxModuleSize[m] != 0 && aDerivedModuleSize[m] != 0 && aDerivedModuleSize[m] > aMaxModuleSize[m]){
aMaxModuleSize[m]=int(aDerivedModuleSize[m])
aMaxModuleSize[m]=aDerivedModuleSize[m]
estModuleSize=" (est.)"
}
if (aMaxModuleSize[m] == 0 ){
aMaxModuleSize[m]=""
}
if (aMaxModuleSize[m] != "") {
aMaxModuleSize[m]=int(aMaxModuleSize[m])
}
if (a_memory[j,3] != "" && a_memory[j,4] != "" ) {
if ( a_memory[j,3] < ( a_memory[j,4] * aDerivedModuleSize[m] ) ) {
a_memory[j,3] = a_memory[j,4] * aDerivedModuleSize[m]
estCap=" (est)"
}
}
#print "mms:" aMaxModuleSize[m] ":dms:" aDerivedModuleSize[m] ":mc:" a_memory[j,3]
# print "mms:" aMaxModuleSize[m] ":dms:" aDerivedModuleSize[m] ":mc:" a_memory[j,3]
# some cases of type 5 have too big module max size, just dump the data then
if ( aMaxModuleSize[m] != "" && a_memory[j,3] != "" && ( aMaxModuleSize[m] > a_memory[j,3] ) ){
aMaxModuleSize[m] = ""

View file

@ -1,3 +1,17 @@
=====================================================================================
Version: 2.1.95
Patch Version: 01
Script Date: 2014-08-13
-----------------------------------
Changes:
-----------------------------------
patch version, trying to fix a small glitch with gawk wanting to change integers to strings.
forcing int() on relevant items.
-----------------------------------
-- Harald Hope - Wed, 13 Aug 2014 21:28:46 -0700
=====================================================================================
Version: 2.1.95
Patch Version: 00