@cryptotaxi247 / netdata-1 / commits / d7cf671be

fix win sysinfo installed ram calculation (#18482)

Ilya Mashchenko committed Sep 4, 2024 at 19:26 UTC d7cf671bed5c515ad47ab3294072e1adef6287c4
1 file changed +2 -1
src/daemon/win_system-info.c
+2 -1
@@ -108,10 +108,11 @@ static void netdata_windows_get_mem(struct rrdhost_system_info *systemInfo)
108 {
109 ULONGLONG size;
110 char memSize[256];
111 + // The amount of physically installed RAM, in kilobytes.
112 if (!GetPhysicallyInstalledSystemMemory(&size))
113 size = 0;
114 else
114 - (void)snprintf(memSize, 255, "%llu", size);
115 + (void)snprintf(memSize, 255, "%llu", size * 1024); // to bytes
116
117 (void)rrdhost_set_system_info_variable(systemInfo,
118 "NETDATA_SYSTEM_TOTAL_RAM",