pid1: properly encode infinity when writing CPUQuota snippet (#6141)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 18 Jun 2017 09:18:41 +0000 (05:18 -0400)
committerLennart Poettering <lennart@poettering.net>
Sun, 18 Jun 2017 09:18:41 +0000 (11:18 +0200)
commitd4bf82fcac576d9dfbc1b837995a780dc851cd4c
treec1fea2de6b02f8597ac04089342c9c53541a0459
parentf1fccf53229516f99137d5d80ed5b92e586458e6
pid1: properly encode infinity when writing CPUQuota snippet (#6141)

We would write
  [Slice]
  CPUQuota=1844674407370955%
which is (numerically) correct, but it seems better to just write
  [Slice]
  CPUQuota=
which is interpreted as USEC_INFINITY by the parser in config_parse_cpu_quota().

Fixes #5965.
src/core/dbus-cgroup.c