X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=json.c;h=e0227ec6446bdfafe678dee39583109fe461fe7d;hb=3b973af558aa0802e2c8193e9afac4cd49af3ca0;hp=f3ec0bb45f0852dde21d9cdbf0de97e46725a371;hpb=f672ef67527a27eb2bbc59aa6041a42d88a00838;p=fio.git diff --git a/json.c b/json.c index f3ec0bb4..e0227ec6 100644 --- a/json.c +++ b/json.c @@ -40,7 +40,7 @@ static struct json_value *json_create_value_int(long long number) return value; } -static struct json_value *json_create_value_float(float number) +static struct json_value *json_create_value_float(double number) { struct json_value *value = malloc(sizeof(struct json_value)); @@ -347,7 +347,7 @@ static void json_print_value(struct json_value *value, struct buf_output *out) log_buf(out, "%lld", value->integer_number); break; case JSON_TYPE_FLOAT: - log_buf(out, "%.2f", value->float_number); + log_buf(out, "%f", value->float_number); break; case JSON_TYPE_OBJECT: json_print_object(value->object, out);