Skip to content

Commit 28b62d3

Browse files
committed
fix: linting issues & cubic issue
1 parent 64dfa55 commit 28b62d3

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

packages/frontend/editor-ui/src/features/settings/orchestration.ee/components/WorkerCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ onBeforeUnmount(() => {
7171
>
7272
Name: {{ worker.senderId }} ({{ worker.hostname }}) <br />
7373
Average Load: {{ averageWorkerLoadFromLoadsAsString(worker.loadAvg ?? [0]) }} | Free memory:
74-
{{ memAsGb(worker.process.memory.available) }}Gb /
74+
{{ memAsGb(worker.process.memory.available) }}GB /
7575
{{
7676
memAsGb(
7777
worker.isInContainer ? worker.process.memory.constraint : worker.host.memory.total,
7878
)
79-
}}Gb
79+
}}GB
8080
{{ stale ? ' (stale)' : '' }}
8181
</N8nHeading>
8282
</template>

packages/frontend/editor-ui/src/features/settings/orchestration.ee/components/WorkerChartsAccordion.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ import { ref } from 'vue';
55
import type { ChartData, ChartOptions } from 'chart.js';
66
import type { ChartComponentRef } from 'vue-chartjs';
77
import { Chart } from 'vue-chartjs';
8-
import { averageWorkerLoadFromLoads, memAsGb } from '../orchestration.utils';
8+
import { averageWorkerLoadFromLoads } from '../orchestration.utils';
99
import { useI18n } from '@n8n/i18n';
10-
import { worker } from '@/features/shared/editors/plugins/codemirror/typescript/worker/typescript.worker';
1110
1211
const props = defineProps<{
1312
workerId: string;

packages/frontend/editor-ui/src/features/settings/orchestration.ee/components/WorkerMemoryMonitorAccordion.vue

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<script setup lang="ts">
22
import type { WorkerStatus } from '@n8n/api-types';
33
import WorkerAccordion from './WorkerAccordion.vue';
4-
import { useClipboard } from '@/app/composables/useClipboard';
54
import { useI18n } from '@n8n/i18n';
6-
import { useToast } from '@/app/composables/useToast';
75
import { memAsGb, memAsMb } from '@/features/settings/orchestration.ee/orchestration.utils';
86
97
const 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

Comments
 (0)