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

Annotation of qmapshack/navipowm/patches/patch-src_linux_OSSpecific_cpp, Revision 1.1

1.1     ! kirby       1: $OpenBSD$
        !             2: --- src/linux/OSSpecific.cpp.orig      Tue Jan  3 06:27:37 2012
        !             3: +++ src/linux/OSSpecific.cpp   Tue Jan  3 06:31:36 2012
        !             4: @@ -22,8 +22,6 @@
        !             5:  
        !             6:  #include "OSSpecific.hpp"
        !             7:  
        !             8: -#include <sys/sysinfo.h>
        !             9: -
        !            10:  //-------------------------------------
        !            11:  void TriggerWatchdog() {
        !            12:      /// \todo implement
        !            13: @@ -31,11 +29,12 @@ void TriggerWatchdog() {
        !            14:  
        !            15:  //-------------------------------------
        !            16:  t_uint64 GetFreeMem() {
        !            17: -    struct sysinfo SINFO;
        !            18: +/*    struct sysinfo SINFO;
        !            19:      memset(&SINFO, 0, sizeof(SINFO));
        !            20:      int res = sysinfo(&SINFO); 
        !            21:      if(res < 0)
        !            22:          return 0;
        !            23:      t_uint64 FreeMem = static_cast<t_uint64>(SINFO.freeram) + static_cast<t_uint64>(SINFO.sharedram) + static_cast<t_uint64>(SINFO.bufferram);
        !            24: -    return FreeMem;
        !            25: +*/
        !            26: +    return 64;
        !            27:  }

CVSweb