Return to patch-src_linux_OSSpecific_cpp CVS log | Up to [local] / ports / geo / navipowm / patches |
File: [local] / ports / geo / navipowm / patches / patch-src_linux_OSSpecific_cpp (download)
Revision 1.1.1.1 (vendor branch), Sun Jan 15 10:32:22 2012 UTC (12 years, 8 months ago) by yason
import |
$OpenBSD$ --- src/linux/OSSpecific.cpp.orig Tue Jan 3 06:27:37 2012 +++ src/linux/OSSpecific.cpp Tue Jan 3 06:31:36 2012 @@ -22,8 +22,6 @@ #include "OSSpecific.hpp" -#include <sys/sysinfo.h> - //------------------------------------- void TriggerWatchdog() { /// \todo implement @@ -31,11 +29,12 @@ void TriggerWatchdog() { //------------------------------------- t_uint64 GetFreeMem() { - struct sysinfo SINFO; +/* struct sysinfo SINFO; memset(&SINFO, 0, sizeof(SINFO)); int res = sysinfo(&SINFO); if(res < 0) return 0; t_uint64 FreeMem = static_cast<t_uint64>(SINFO.freeram) + static_cast<t_uint64>(SINFO.sharedram) + static_cast<t_uint64>(SINFO.bufferram); - return FreeMem; +*/ + return 64; }