mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
JSON: don't print the non-standand NaN
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user