systemctl: format IPIngressBytes= or friends nicely

This commit is contained in:
Yu Watanabe 2019-03-03 01:35:18 +09:00
parent 9c1f946566
commit 56c6b69007

View file

@ -800,6 +800,8 @@ static int bus_print_property(const char *name, const char *expected_value, sd_b
(startswith(name, "DefaultLimit") && u == (uint64_t) -1))
bus_print_property_value(name, expected_value, value, "infinity");
else if (STR_IN_SET(name, "IPIngressBytes", "IPIngressPackets", "IPEgressBytes", "IPEgressPackets") && u == (uint64_t) -1)
bus_print_property_value(name, expected_value, value, "[no data]");
else
bus_print_property_valuef(name, expected_value, value, "%"PRIu64, u);