From: Dennis S. <sy...@yo...> - 2005-02-21 17:14:00
|
On Mon, 2005-02-21 at 14:57 +0100, Thomas Klausner wrote: > Thanks again. Yes, here it is: > > #include <sys/param.h> > #include <sys/sysctl.h> > > int mib[2], ncpu; > size_t len; > > mib[0] = CTL_HW; > mib[1] = HW_NCPU; > > len = sizeof(ncpu); > sysctl(mib, 2, &ncpu, &len, NULL, 0); > > Then ncpu contains the number of CPUs. Alright, thank you! Will this also work on free and openbsd, or can you enlighten me a bit on those two as well ? > Are the other CRITICAL warnings from the log I posted something > that should be investigated? Those others are known, gonna be fixed for 0.4.0 :) Thanks, Dennis |