We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4b3d62 commit 30d910fCopy full SHA for 30d910f
src/Libraries/Microsoft.Extensions.Diagnostics.ResourceMonitoring/ResourceMonitoringLinuxCgroupVersion.cs
@@ -23,7 +23,13 @@ public static bool GetCgroupType()
23
{
24
DriveInfo[] allDrives = DriveInfo.GetDrives();
25
var injectParserV2 = false;
26
- const string CgroupVersion = "cgroup2fs";
+ const string CgroupVersion =
27
+#if NET10_0_OR_GREATER
28
+ "cgroup2";
29
+#else
30
+ "cgroup2fs";
31
+#endif
32
+
33
const string UnifiedCgroupPath = "/sys/fs/cgroup/unified";
34
35
// We check which cgroup version is mounted in the system and based on that we inject the parser.
0 commit comments