@cryptotaxi247 / netdata-1 / commits / defcb8345

system memory calculation for cgroups v1 fix (#19402)

fix missing path

Costa Tsaousis committed Jan 15, 2025 at 10:40 UTC defcb8345cf01301d865ff755b657d55e3acdbaf
1 file changed +1 -1
src/libnetdata/os/system_memory.c
+1 -1
@@ -98,7 +98,7 @@ static OS_SYSTEM_MEMORY os_system_memory_cgroup_v1(bool query_total_ram __maybe_
98 if(!used || used > sm.ram_total_bytes)
99 goto failed;
100
101 - if (read_txt_file("/sys/fs/cgroup/memory.stat", buf, sizeof(buf)) != 0)
101 + if (read_txt_file("/sys/fs/cgroup/memory/memory.stat", buf, sizeof(buf)) != 0)
102 goto done;
103
104 const char *inactive_str = strstr(buf, "total_inactive_file ");