]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-print-properties: drop *CPUShares formatter
authorMike Yuan <me@yhndnzj.com>
Tue, 27 May 2025 15:00:49 +0000 (17:00 +0200)
committerMike Yuan <me@yhndnzj.com>
Tue, 27 May 2025 22:19:26 +0000 (00:19 +0200)
src/shared/bus-print-properties.c

index 9d0d9377b279d2216a02842ef870ba1d5ca9ad38..fb3aa8d2dbf8551d3808f100f53ee0624153d185 100644 (file)
@@ -164,7 +164,6 @@ static int bus_print_property(const char *name, const char *expected_value, sd_b
                         bus_print_property_value(name, expected_value, flags, "idle");
 
                 else if ((STR_IN_SET(name, "CPUWeight", "StartupCPUWeight", "IOWeight", "StartupIOWeight") && u == CGROUP_WEIGHT_INVALID) ||
-                           (STR_IN_SET(name, "CPUShares", "StartupCPUShares") && u == CGROUP_CPU_SHARES_INVALID) ||
                            (STR_IN_SET(name, "MemoryCurrent", "MemoryAvailable", "TasksCurrent") && u == UINT64_MAX) ||
                            (startswith(name, "Memory") && ENDSWITH_SET(name, "Current", "Peak") && u == CGROUP_LIMIT_MAX) ||
                            (startswith(name, "IO") && ENDSWITH_SET(name, "Bytes", "Operations") && u == UINT64_MAX) ||