]> granicus.if.org Git - sysstat/commit
sadf: ppc: Remove duplicate % sign
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 24 Dec 2017 15:14:01 +0000 (16:14 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 24 Dec 2017 15:14:01 +0000 (16:14 +0100)
commitdfd6441fb7a6b7aef4f1d3d4a1e3bfb786e06a2d
tree88e15d1a15647014aaf83f6f43a416ec2d79b587
parenta9db5f2e54653038571a2e921a02705ed10be02d
sadf: ppc: Remove duplicate % sign

In some cases, the % sign was printed twice by sadf -p, e.g.:

$ sadf -p test_file
test.home 1 2017-12-24 14:52:39 UTC all %%user 0.25
test.home 1 2017-12-24 14:52:39 UTC all %%nice 0.00
test.home 1 2017-12-24 14:52:39 UTC all %%system 0.25
test.home 1 2017-12-24 14:52:39 UTC all %%iowait 0.00
test.home 1 2017-12-24 14:52:39 UTC all %%steal 0.00
test.home 1 2017-12-24 14:52:39 UTC all %%idle 99.50

Expected result:

$ sadf -p test_file
test.home 1 2017-12-24 14:52:39 UTC all %user 0.25
test.home 1 2017-12-24 14:52:39 UTC all %nice 0.00
test.home 1 2017-12-24 14:52:39 UTC all %system 0.25
test.home 1 2017-12-24 14:52:39 UTC all %iowait 0.00
test.home 1 2017-12-24 14:52:39 UTC all %steal 0.00
test.home 1 2017-12-24 14:52:39 UTC all %idle 99.50

Problem was triggered by commit 5431b6c.
This patch fixes it.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
rndr_stats.c