|
Post by bittwiddler on Apr 19, 2019 18:23:08 GMT
I would like to slightly modify the memory reporting on index.php slightly and wanted to get feedback before making the changes.
1) Change "Memory" to "Available Memory" 2) Add another row which reports total memory.
I notice that quite a few mem values are calculated in the code but never used (lines 54-60). I believe I can use an already calculate value and simply add an entry for the information.
Any objections?
|
|
|
Post by bittwiddler on Apr 19, 2019 18:31:04 GMT
Also the code for Memory is making this call:
sysctl -n hw.physmem
which does not appear accurate. On my net4801 with 128MB RAM it is reporting 95911936. That seems a little low.
sysctl -n hw.hwmem
reports 134217728 which is much closer to the amount of physical RAM onboard.
|
|
|
Post by Lee Sharp on Apr 19, 2019 20:23:41 GMT
Remember that you have a ramdisk allocated.
|
|
|
Post by bittwiddler on Apr 23, 2019 19:06:40 GMT
I am not sure I was ever aware of that. Still, the installed memory will not change due to that. I would like to show both the total physical memory and available (unallocated by anything) memory.
How large is the ramdisk?
|
|
|
Post by Lee Sharp on Apr 23, 2019 19:19:41 GMT
21 meg.
|
|
|
Post by bittwiddler on Apr 25, 2019 1:22:29 GMT
Thanks!
|
|