Skip to content

Commit

Permalink
system memory calculation for cgroups v1 fix (netdata#19402)
Browse files Browse the repository at this point in the history
fix missing path
  • Loading branch information
ktsaou authored Jan 15, 2025
1 parent e6cef27 commit defcb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libnetdata/os/system_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static OS_SYSTEM_MEMORY os_system_memory_cgroup_v1(bool query_total_ram __maybe_
if(!used || used > sm.ram_total_bytes)
goto failed;

if (read_txt_file("/sys/fs/cgroup/memory.stat", buf, sizeof(buf)) != 0)
if (read_txt_file("/sys/fs/cgroup/memory/memory.stat", buf, sizeof(buf)) != 0)
goto done;

const char *inactive_str = strstr(buf, "total_inactive_file ");
Expand Down

0 comments on commit defcb83

Please sign in to comment.