Fix multipler on Windows ("Memory") (#17705)
thiagoftsm committed
May 20, 2024 at 07:45 UTC
05dd823fed621240511fed2a87a9fb0ead722e02
1 file changed
+1
-1
src/collectors/windows.plugin/perflib-memory.c
+1
-1
@@ -37,7 +37,7 @@ static bool do_memory(PERF_DATA_BLOCK *pDataBlock, int update_every) {
37
else if(perflibGetObjectCounter(pDataBlock, pObjectType, &availableKBytes))
38
available_bytes = availableKBytes.current.Data * 1024;
39
else if(perflibGetObjectCounter(pDataBlock, pObjectType, &availableMBytes))
40
- available_bytes = availableMBytes.current.Data * 1024;
40
+ available_bytes = availableMBytes.current.Data * 1024 * 1024;
41
42
common_mem_available(available_bytes, update_every);
43