cpu plugin: Fix ValuesPercentage to behave as documented.
authorFlorian Forster <octo@collectd.org>
Tue, 2 Dec 2014 10:09:32 +0000 (11:09 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 2 Dec 2014 10:09:32 +0000 (11:09 +0100)
commitf73bf70fde3b0c9763220b9c9e6875018f64832c
tree70871844ed2a4aa158a045ea408ce6ff2b39b4a7
parentdbeee0cfad69e701ea2665001fd9f2bce49c9489
cpu plugin: Fix ValuesPercentage to behave as documented.

The documentation claims that ValuesPercentage is only considered when
!ByState && !ByCpu. Fix the behavior to match this documented behavior.
This makes cpu_commit_without_aggregation much easier.

Bug: #820
src/cpu.c