When I look at upstream 20061020-3:
   MEMSIZE="`head -1 /proc/meminfo | awk '{ print $2 }'`"
looks like it still might be high by a factor of 1024 since MEMSIZE is in 
megabytes and meminfo is in kilobytes.

That is why my patch adjusted for the difference:
   MEMSIZE=$(($(cat /proc/meminfo | awk '/^MemTotal/ { print $2 }') / 1024))

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/706764

Title:
  dphys-swapfile sets incorrect swap size

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to