Skip to content

Commit

Permalink
Final changes?
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Oct 8, 2024
1 parent f0c3a45 commit 38617aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions system/jlib/jdebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,16 @@ bool SystemInfo::update(unsigned flags)
processLines(contents, processLine);
done = true;
}
else
{
//Some systems with version 1 cgroups have the information in /sys/fs/cgroup/cpu/<cgroup>/cpu.stat
filename.clear().appendf("/sys/fs/cgroup/cpu/%s/cpu.stat", cgroup);
if (loadBinaryFile(contents.clear(), filename.str(), false))
{
processLines(contents, processLine);
done = true;
}
}
}

//If the version 2 file was not found look for ther version 1 information in cgroup/cpu
Expand Down

0 comments on commit 38617aa

Please sign in to comment.