2011/7/17 Anton Gladky <[email protected]>: > [1] > http://anonscm.debian.org/gitweb/?p=debian-science/packages/freecad.git;a=blob;f=src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp;h=08d1b66958c089e84b2e0e468b7a34f2bae58106;hb=HEAD#l68
The code you quoted just fills the structure, below it's using it to query free ram and free swap: 90 int freeMb = 91 ( si.freeram * si.mem_unit ) / Mbyte + 92 ( si.freeswap * si.mem_unit ) / Mbyte; You can use sysctl for ram and libkvm for swap, see: http://code.google.com/p/sysinfo-bsd/source/browse/sysinfo.c -- Robert Millan -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/caofdtxo3enb4nkqt43fe5aw_bfminnz89s2s8htxedvbly4...@mail.gmail.com

