11<script setup lang="ts">
22import type { WorkerStatus } from ' @n8n/api-types' ;
33import WorkerAccordion from ' ./WorkerAccordion.vue' ;
4- import { useClipboard } from ' @/app/composables/useClipboard' ;
54import { useI18n } from ' @n8n/i18n' ;
6- import { useToast } from ' @/app/composables/useToast' ;
75import { memAsGb , memAsMb } from ' @/features/settings/orchestration.ee/orchestration.utils' ;
86
97const props = defineProps <{
@@ -25,11 +23,11 @@ const i18n = useI18n();
2523 <tbody >
2624 <tr >
2725 <th >Total (os.totalmem)</th >
28- <td >{{ memAsGb(worker.host.memory.total) }}Gb </td >
26+ <td >{{ memAsGb(worker.host.memory.total) }}GB </td >
2927 </tr >
3028 <tr >
3129 <th >Free (os.freemem)</th >
32- <td >{{ memAsGb(worker.host.memory.free) }}Gb </td >
30+ <td >{{ memAsGb(worker.host.memory.free) }}GB </td >
3331 </tr >
3432 </tbody >
3533 </table >
@@ -39,23 +37,23 @@ const i18n = useI18n();
3937 <tbody >
4038 <tr v-if =" worker.isInContainer" >
4139 <th >Constraint: (process.constrainedMemory)</th >
42- <td >{{ memAsMb(worker.process.memory.constraint) }}Mb </td >
40+ <td >{{ memAsMb(worker.process.memory.constraint) }}MB </td >
4341 </tr >
4442 <tr >
4543 <th >Available: (process.availableMemory)</th >
46- <td >{{ memAsMb(worker.process.memory.available) }}Mb </td >
44+ <td >{{ memAsMb(worker.process.memory.available) }}MB </td >
4745 </tr >
4846 <tr >
4947 <th >RSS: (process.memoryUsage().rss)</th >
50- <td >{{ memAsMb(worker.process.memory.rss) }}Mb </td >
48+ <td >{{ memAsMb(worker.process.memory.rss) }}MB </td >
5149 </tr >
5250 <tr >
5351 <th >Heap total: (process.memoryUsage().heapTotal)</th >
54- <td >{{ memAsMb(worker.process.memory.heapTotal) }}Mb </td >
52+ <td >{{ memAsMb(worker.process.memory.heapTotal) }}MB </td >
5553 </tr >
5654 <tr >
5755 <th >Heap used: (process.memoryUsage().heapUsed)</th >
58- <td >{{ memAsMb(worker.process.memory.heapUsed) }}Mb </td >
56+ <td >{{ memAsMb(worker.process.memory.heapUsed) }}MB </td >
5957 </tr >
6058 </tbody >
6159 </table >
0 commit comments