]> git.baikalelectronics.ru Git - kernel.git/commit
iocost_monitor: Always use strings for json values
authorTejun Heo <tj@kernel.org>
Wed, 4 Sep 2019 19:45:54 +0000 (12:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Sep 2019 18:31:39 +0000 (12:31 -0600)
commit3aa52b8ff5eea4ba763294c432504f3b8b6a8025
tree1ff62649f8ee32bb00939bbd12fa658f31457d73
parentf144ef162b56942e760873ded1a7b9b78a49b9f2
iocost_monitor: Always use strings for json values

Json has limited accuracy for numbers and can silently truncate 64bit
values, which can be extremely confusing.  Let's consistently use
string encapsulated values for json output.

While at it, convert an unnecesary f-string to str().

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/cgroup/iocost_monitor.py