fix sorting process cpu percentage. Fixes #831

This commit is contained in:
sadnub
2021-11-28 21:07:09 -05:00
parent dff949cc9b
commit ffb2c12e8d

View File

@@ -95,7 +95,7 @@ const columns = [
field: "cpu_percent",
align: "left",
sortable: true,
sort: (a, b, rowA, rowB) => parseInt(b) < parseInt(a),
sort: (a, b, rowA, rowB) => parseFloat(b) < parseFloat(a),
},
{
name: "membytes",