Commit 72923873 authored by jan.koester's avatar jan.koester
Browse files

test

parent 35f2cf4f
Loading
Loading
Loading
Loading
+3 −0
Changes for plugins/nodeinfo/CMakeLists.txt: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -3,6 +3,9 @@ add_library(nodeinfo SHARED nodeinfo.cpp "icons/win_ico.h")
add_dependencies(nodeinfo blogidev)

if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows")
    if(CMAKE_HOST_SYSTEM_VERSION VERSION_GREATER_EQUAL "6.2")
        add_compile_definitions(_WIN32_WINNT=0x0602)
    endif()
    target_link_libraries(nodeinfo PUBLIC kernel32.lib blogidev uuidp::uuidp)
else()
    target_link_libraries(nodeinfo PUBLIC dl blogidev uuidp::uuidp)
+4 −4
Changes for plugins/nodeinfo/nodeinfo.cpp: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ namespace blogi {
            
            libhtmlpp::HtmlTable htmltable;

#ifndef Windows
#if !defined(Windows)
            struct utsname usysinfo;
            uname(&usysinfo);
            /*create htmltable widget*/
@@ -261,7 +261,7 @@ namespace blogi {
                }
            }
#endif // Windows
#ifdef FreeBSD
#if defined(FreeBSD)
            long psize;
            if((psize=sysconf(_SC_PAGESIZE))>0){
                // BSD/sysctl implementation (Your previous update)
@@ -285,7 +285,7 @@ namespace blogi {
                snprintf(ab, 512, "%ld/%ld MB", free_mb, total_mb);
                htmltable << (libhtmlpp::HtmlTable::Row() << "Arbeitspeicher: " << ab);
            }
#elifdef Linux // New Linux-specific implementation
#elif defined(Linux) // New Linux-specific implementation
            // Linux implementation: Read /proc/meminfo
            std::ifstream meminfo("/proc/meminfo");
            long total_mem_kb = 0;
@@ -324,7 +324,7 @@ namespace blogi {
                snprintf(ab, 512, "%ld/%ld MB", free_mb, total_mb);
                htmltable << (libhtmlpp::HtmlTable::Row() << "Arbeitspeicher: " << ab);
            }
#elifdef Windows
#elif defined(Windows)
            MEMORYSTATUSEX status;
            status.dwLength = sizeof(status);