[EMAIL PROTECTED] dixit:
>Log:
>fixed for different content of /proc/meminfo with kernel-2.6
>-size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
>+size=$(awk '/MemTotal:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
Is that so?
I have the following on BSD, probably modelled after Linux 2.4 (don't
have an ssh to quick check):
Mem: 237580288 236003328 1576960 0 0 0
MemTotal: 232012 kB
And this on Linux 2.6:
MemTotal: 514368 kB
So I guess there must be a factor of 1024 somewhere in there,
unless the Linux 2.4 procfs is yet different.
//mirabile
--
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence. -- Coywolf Qi Hunt
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers