Skip to content

Commit

Permalink
feat: add memory per core for workers
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Mar 21, 2024
1 parent 4adacc5 commit 9ceaab9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/pages/workers/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
id: number;
is_live: boolean;
last_heartbeat_time: string;
logical_cores: number;
memory_bytes: number;
disk_free_space_bytes: number;
}
export default {
Expand All @@ -78,6 +81,7 @@
{ title: 'Architecture', key: 'arch', sortable: false },
{ title: 'Logical Cores', key: 'logical_cores', sortable: false },
{ title: 'Memory Size', key: 'memory_bytes', sortable: false, value: (item: any) => prettyBytes(item.memory_bytes) },
{ title: 'Memory Per Core', key: 'memory_per_core', sortable: false, value: (item: any) => prettyBytes(item.memory_bytes / item.logical_cores) },
{ title: 'Disk Free Space Size', key: 'disk_free_space_bytes', sortable: false, value: (item: any) => prettyBytes(item.disk_free_space_bytes) },
{ title: 'Status', key: 'status', sortable: false },
],
Expand Down

0 comments on commit 9ceaab9

Please sign in to comment.