danger@ said:are you running i386 machine?
what does give you
$ echo "3132121088 / (1024 * 1024)" | bc?
Mostafa# echo "3132121088 / (1024 * 1024)" | bc
2987
	danger@ said:ah, so there's probably a buffer overflow on i386 and such a high number in the sh's expression $(( )).
I will replace them with bc and release a new version. I will notify you.
danger@ said:
Mostafa# tar -xvf sysinfo-1.0.1.tar.gz 
x sysinfo/
x sysinfo/modules/
x sysinfo/sysinfo
x sysinfo/common.subr
x sysinfo/doc/
x sysinfo/LICENCE
x sysinfo/sysinfo.conf
x sysinfo/doc/sysinfo.8
x sysinfo/doc/sysinfo.conf.5
x sysinfo/modules/bios
x sysinfo/modules/packages
x sysinfo/modules/user
x sysinfo/modules/network
x sysinfo/modules/mem
x sysinfo/modules/storage
x sysinfo/modules/services
x sysinfo/modules/system
x sysinfo/modules/cpu
x sysinfo/modules/os
x sysinfo/modules/misc
Mostafa# sysinfo mem
RAM information
Memory information from dmidecode(8)
Maximum Memory Module Size: 2048 MB
Maximum Total Memory Size: 8192 MB
Maximum Capacity: 4 GB
Number Of Devices: 4
INFO: Run `dmidecode -t memory` to see further information.
System memory summary
Total real memory available:	2047 MB
Logically used memory:		478 MB
Logically available memory:	1569 MB
Swap information
Device          1K-blocks     Used    Avail Capacity
/dev/ad10s1b      2062384     172K     2.0G     0%
	cd sysinfo
./sysinfo -v mem
	danger@ said:you haven't started the right version
after you have successfuly extracted the new version, you have started the system one. Do this in order to run the new version:
Code:cd sysinfo ./sysinfo -v mem
You should see "Generated by SysInfo v1.0.1 by Daniel Gerzo" as the first line of the output.
Mostafa# cd sysinfo
Mostafa# ./sysinfo -v mem
Generated by SysInfo v1.0.1 by Daniel Gerzo
RAM information
Memory information from dmidecode(8)
Maximum Memory Module Size: 2048 MB
Maximum Total Memory Size: 8192 MB
Maximum Capacity: 4 GB
Number Of Devices: 4
INFO: Run `dmidecode -t memory` to see further information.
System memory information
Wired memory	- disabled for paging out	250 MB
Active memory	- recently referenced		1059 MB
Inactive memory	- recently not referenced	1461 MB
Cached memory	- almost avail. for allocation	148 MB
Free memory	- fully avail. for allocation	9 MB
System memory summary
Total real memory available:	2987 MB
Logically used memory:		428 MB
Logically available memory:	1619 MB
Swap information
Device          1K-blocks     Used    Avail Capacity
/dev/ad10s1b      2062384     176K     2.0G     0%
Mostafa#