No description
- Python 74.6%
- Roff 17.3%
- C 8.1%
There are two minor bugs on physical memory size computing: (1) fromunits() returns wrong value for "2001844kB", which consists of more than one digits. (2) memory()['memtotal'] is in kB. If "--realmem" is not provided at CLI, totalmem() returns number in MB and the "firmware/hardware" amount will be minus. totalmem() needs to always return value in kB. Here is how to test this patch: (1) Do "smem -w" , the "firmware/hardware" amount should not be minus. (2) Do "smem -w -R 2001844kB" (change 2001844kB per your PC, note to keep it in kB unit) , the "firmware/hardware" amount should not be minus. Here's a patch to fix these issues. |
||
|---|---|---|
| capture | ||
| COPYING | ||
| smem | ||