BrainSpawnInfosphere / pyarchey

Archey is a system information tool written in Python.
https://pypi.python.org/pypi/pyarchey/
GNU General Public License v3.0
8 stars 6 forks source link

Fix rounding numbers #6

Closed ghost closed 9 years ago

ghost commented 9 years ago

On my Slackware Linux OS:

$ cat /proc/meminfo | grep "MemTotal"
MemTotal:        6063004 kB

In Python IDLE:

import psutil as ps

ram = ps.virtual_memory()
ram.total
6208516096L

From CLI:

$ pyarchey | grep "RAM"
::::::::::o    l::::::::::l    lc::::::::::: RAM: 4 GB/ 5 GB

after patch:

$ pyarchey | grep "RAM"
::::::::::o    l::::::::::l    lc::::::::::: RAM: 5 GB/ 6 GB
landscape-bot commented 9 years ago

Code Health Repository health decreased by 0.88% when pulling 94a2f0b on dslackw:master into 39e53f1 on walchko:master.

walchko commented 9 years ago

thanks!