Skip to content

Commit

Permalink
WebUI: Sort queries on worker by descending memory consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
takezoe committed Dec 14, 2024
1 parent edc72f2 commit 4854766
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ export class WorkerStatus extends React.Component {
<div>
<table className="table">
<tbody>
{Object.keys(queries).map((key) =>
WorkerStatus.renderPoolQuery(key, queries[key][0], queries[key][1], size)
)}
{Object.keys(queries)
.sort((a, b) => queries[b][0] - queries[a][0])
.map((key) => WorkerStatus.renderPoolQuery(key, queries[key][0], queries[key][1], size))}
</tbody>
</table>
</div>
Expand Down

0 comments on commit 4854766

Please sign in to comment.