bfritscher / typesense-dashboard

A Typesense Dashboard to manage and browse collections.
https://bfritscher.github.io/typesense-dashboard/
GNU General Public License v3.0
359 stars 67 forks source link

Show CPU stats in ascending order #62

Closed pjcunningham closed 6 months ago

pjcunningham commented 6 months ago

2024-04-24_11-09-39

Use a computed function to sort the CPU stats on the CPU node number. Returns an array like:

[ { node: 0, value: 20 }, { node: 1, value: 0 }, { node: 2, value: 0 }, { node: 3, value: 0 }, { node: 4, value: 0 }, { node: 5, value: 0 }, { node: 6, value: 0 }, { node: 7, value: 0 }, { node: 8, value: 0 }, { node: 9, value: 0 }, { node: 10, value: 10 }, { node: 11, value: 0 }, { node: 12, value: 0 }, { node: 13, value: 0 }, { node: 14, value: 0 }, { node: 15, value: 0 }, { node: 16, value: 0 }, { node: 17, value: 0 }, { node: 18, value: 0 }, { node: 19, value: 0 }, { node: 20, value: 0 }, { node: 21, value: 0 }, { node: 22, value: 0 }, { node: 23, value: 0 }, { node: 24, value: 0 }, { node: 25, value: 0 }, { node: 26, value: 0 }, { node: 27, value: 0 }, { node: 28, value: 0 }, { node: 29, value: 0 }, { node: 30, value: 0 }, { node: 31, value: 0 }, { node: 32, value: 0 } ]

bfritscher commented 6 months ago

Great thanks for taking the time to do a PR.