diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2024-05-20 07:45:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 10:45:34 +0300 |
commit | 05dd823fed621240511fed2a87a9fb0ead722e02 (patch) | |
tree | 41a3cc909ec50f28649a3ab0a7147bd7d6a634c4 | |
parent | 7bfa7feedbfac033db7804b8f5245ee795e02f99 (diff) |
Fix multipler on Windows ("Memory") (#17705)
-rw-r--r-- | src/collectors/windows.plugin/perflib-memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collectors/windows.plugin/perflib-memory.c b/src/collectors/windows.plugin/perflib-memory.c index 91d27357f4..c876fc68ad 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);
|