JSON: don't print the non-standand NaN

This commit is contained in:
李通洲
2023-09-18 20:12:33 +08:00
parent 7f727086af
commit 8a14cbae0c
3 changed files with 3 additions and 9 deletions
+1 -4
View File
@@ -256,10 +256,7 @@ void ffGenerateGPUJson(FFGPUOptions* options, yyjson_mut_doc* doc, yyjson_mut_va
else
yyjson_mut_obj_add_null(doc, sharedObj, "used");
if (gpu->temperature == gpu->temperature)
yyjson_mut_obj_add_real(doc, obj, "temperature", gpu->temperature);
else
yyjson_mut_obj_add_null(doc, obj, "temperature");
yyjson_mut_obj_add_null(doc, obj, "temperature");
const char* type;
switch (gpu->type)