From 05dd823fed621240511fed2a87a9fb0ead722e02 Mon Sep 17 00:00:00 2001 From: thiagoftsm Date: Mon, 20 May 2024 07:45:34 +0000 Subject: [PATCH] Fix multipler on Windows ("Memory") (#17705) --- src/collectors/windows.plugin/perflib-memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collectors/windows.plugin/perflib-memory.c b/src/collectors/windows.plugin/perflib-memory.c index 91d27357f4f49f..c876fc68ad6ce7 100644 --- a/src/collectors/windows.plugin/perflib-memory.c +++ b/src/collectors/windows.plugin/perflib-memory.c @@ -37,7 +37,7 @@ static bool do_memory(PERF_DATA_BLOCK *pDataBlock, int update_every) { else if(perflibGetObjectCounter(pDataBlock, pObjectType, &availableKBytes)) available_bytes = availableKBytes.current.Data * 1024; else if(perflibGetObjectCounter(pDataBlock, pObjectType, &availableMBytes)) - available_bytes = availableMBytes.current.Data * 1024; + available_bytes = availableMBytes.current.Data * 1024 * 1024; common_mem_available(available_bytes, update_every);