mirror of
https://github.com/smxi/inxi.git
synced 2025-01-31 18:12:21 +00:00
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:
parent
5f09b1555c
commit
2709f5120b
8
inxi
8
inxi
|
@ -3,7 +3,7 @@
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### Version: 2.1.95
|
#### Version: 2.1.95
|
||||||
#### Date: 2014-08-13
|
#### Date: 2014-08-13
|
||||||
#### Patch Number: 00
|
#### Patch Number: 01
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -8378,13 +8378,15 @@ get_ram_data()
|
||||||
}
|
}
|
||||||
#print "mms:" aMaxModuleSize[m] ":dms:" aDerivedModuleSize[m] ":mc:" a_memory[j,3]
|
#print "mms:" aMaxModuleSize[m] ":dms:" aDerivedModuleSize[m] ":mc:" a_memory[j,3]
|
||||||
if (aMaxModuleSize[m] != 0 && aDerivedModuleSize[m] != 0 && aDerivedModuleSize[m] > aMaxModuleSize[m]){
|
if (aMaxModuleSize[m] != 0 && aDerivedModuleSize[m] != 0 && aDerivedModuleSize[m] > aMaxModuleSize[m]){
|
||||||
aMaxModuleSize[m]=int(aDerivedModuleSize[m])
|
aMaxModuleSize[m]=aDerivedModuleSize[m]
|
||||||
estModuleSize=" (est.)"
|
estModuleSize=" (est.)"
|
||||||
}
|
}
|
||||||
if (aMaxModuleSize[m] == 0 ){
|
if (aMaxModuleSize[m] == 0 ){
|
||||||
aMaxModuleSize[m]=""
|
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] != "" ) {
|
||||||
if ( a_memory[j,3] < ( a_memory[j,4] * aDerivedModuleSize[m] ) ) {
|
if ( a_memory[j,3] < ( a_memory[j,4] * aDerivedModuleSize[m] ) ) {
|
||||||
a_memory[j,3] = a_memory[j,4] * aDerivedModuleSize[m]
|
a_memory[j,3] = a_memory[j,4] * aDerivedModuleSize[m]
|
||||||
|
|
|
@ -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
|
Version: 2.1.95
|
||||||
Patch Version: 00
|
Patch Version: 00
|
||||||
|
|
Loading…
Reference in a new issue