]> granicus.if.org Git - sysstat/commit
iostat: JSON output now depends on options used
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 5 Jun 2017 19:08:17 +0000 (21:08 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 5 Jun 2017 19:08:17 +0000 (21:08 +0200)
commit7cd217ade93c1c849cc7c22e6909eeccab8c172f
tree96eba9ab6ae662411300d9589c9f48fc5086a370
parentbfb2c3e8e6b7d421080826a60f51f8e72264e6a0
iostat: JSON output now depends on options used

Make JSON output take into account the options used with iostat.

This fixes a problem where some fields had a name like rkB/s or wkB/s
even when data were expressed in MB. In this example, the name will now
be rMB/s or wMB/s when data are expressed in MB.

This patch renames several fields, breaking backward compatibility that
I first hoped to keep. However all fields are now consistent with
iostat's standard report.

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