[BACK]Return to patch-src_linux_OSSpecific_cpp CVS log [TXT][DIR] Up to [local] / qmapshack / navipowm / patches

File: [local] / qmapshack / navipowm / patches / patch-src_linux_OSSpecific_cpp (download)

Revision 1.1, Sun Apr 3 18:56:42 2016 UTC (8 years, 1 month ago) by kirby
Branch point for: MAIN

Initial revision

$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;
 }