X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=stat.c;h=31042cab8f7e6f510c54a5ec1391f0527134e984;hp=4bfacf71dc7dcce0dc48bb2ba39c33475aadaa7c;hb=f0c50c66a602fa964b2aa2de416deb515dd39ac9;hpb=84784e07d285601946e42e8cbad2603bcc1905c6;ds=sidebyside diff --git a/stat.c b/stat.c index 4bfacf71..31042cab 100644 --- a/stat.c +++ b/stat.c @@ -1266,8 +1266,8 @@ static struct json_object *show_thread_status_json(struct thread_stat *ts, char ss_buf[64]; snprintf(ss_buf, sizeof(ss_buf), "%s%s:%f%s", - ss->check_iops ? "iops" : "bw", - ss->check_slope ? "_slope" : "", + ss->mode & __FIO_SS_IOPS ? "iops" : "bw", + ss->mode & __FIO_SS_SLOPE ? "_slope" : "", (float) ss->limit, ss->pct ? "%" : "");