Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ public static bool GetCgroupType()
{
DriveInfo[] allDrives = DriveInfo.GetDrives();
var injectParserV2 = false;
const string CgroupVersion = "cgroup2fs";
const string CgroupVersion =
#if NET10_0_OR_GREATER
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this will start working once the repository starts targeting .NET 10.

"cgroup2";
#else
"cgroup2fs";
#endif

const string UnifiedCgroupPath = "/sys/fs/cgroup/unified";

// We check which cgroup version is mounted in the system and based on that we inject the parser.
Expand Down
Loading