Skip to content

Commit

Permalink
PADD should show total CPU %
Browse files Browse the repository at this point in the history
Co-authored-by: yubiuser <[email protected]>
Signed-off-by: Dominik <[email protected]>
  • Loading branch information
DL6ER and yubiuser authored Feb 27, 2025
1 parent b6b47f0 commit be30ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/padd.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ int api_padd(struct ftl_conn *api)
parse_proc_meminfo(&mem);
getProcessMemory(&pmem, mem.total);
JSON_ADD_NUMBER_TO_OBJECT(json, "%mem", pmem.VmRSS_percent);
JSON_ADD_NUMBER_TO_OBJECT(json, "%cpu", get_ftl_cpu_percentage());
JSON_ADD_NUMBER_TO_OBJECT(json, "%cpu", get_total_cpu_percentage());
JSON_ADD_NUMBER_TO_OBJECT(json, "pid", getpid());

// info/sensors -> CPU temp sensor
Expand Down

0 comments on commit be30ef7

Please sign in to comment.