]> granicus.if.org Git - sysstat/commit
mpstat, iostat: Use decimal point for FP values in JSON output
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 21 Oct 2016 13:46:44 +0000 (15:46 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 21 Oct 2016 13:46:44 +0000 (15:46 +0200)
commita12a567b148f4dca8a695dfa6c51e186dee20e69
tree4d5ecb99b7a4536e1bcc3e298238988c5ed7fc33
parent921a4acc22eaf61a1c8c5e386a5a9cbb3a690a1c
mpstat, iostat: Use decimal point for FP values in JSON output

This patch sets LC_NUMERIC variable to "C" to make sure JSON output (as
displayed by mpstat and iostat commads) is locale-independent and
floating-point values use a decimal point.
This should make JSON output compliant with RFC7159.

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