mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
Processes: corrects the structure of JSON result
This commit is contained in:
@@ -55,8 +55,9 @@ bool ffGenerateProcessesJsonResult([[maybe_unused]] FFProcessesOptions* options,
|
||||
return false;
|
||||
}
|
||||
|
||||
yyjson_mut_obj_add_uint(doc, module, "processes", result.processes);
|
||||
yyjson_mut_obj_add_uint(doc, module, "threads", result.threads);
|
||||
yyjson_mut_val* obj = yyjson_mut_obj_add_obj(doc, module, "result");
|
||||
yyjson_mut_obj_add_uint(doc, obj, "processes", result.processes);
|
||||
yyjson_mut_obj_add_uint(doc, obj, "threads", result.threads);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user