diff --git a/inxi b/inxi index 4a16e02..b57f176 100755 --- a/inxi +++ b/inxi @@ -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] = "" diff --git a/inxi.changelog b/inxi.changelog index b262387..d3a42cc 100755 --- a/inxi.changelog +++ b/inxi.changelog @@ -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