[Nautilus-list] RAM size formula ?



OK, currently using a KB reading from /proc/meminfo#MemTotal the code
does the following to work out your RAM

(size_kb + 500) / 1000

Whats the recommended way (if any) to work out total ram on a linux box
?


-- 
_______________________________________
Glen Gray             Software Engineer
a n t e f a c t o     t: +353 1 8586006
www.antefacto.com     f: +353 1 8586014
181 Parnell Street - Dublin 1 - Ireland





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]