Skip to content

Commit 252f8ee

Browse files
committed
chore: update @remnawave/backend-contract to version 2.3.2
1 parent 8517a06 commit 252f8ee

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@monaco-editor/react": "^4.7.0",
6060
"@noble/post-quantum": "^0.5.2",
6161
"@paralleldrive/cuid2": "2.2.2",
62-
"@remnawave/backend-contract": "2.3.1",
62+
"@remnawave/backend-contract": "2.3.2",
6363
"@simplewebauthn/browser": "^13.2.2",
6464
"@stablelib/base64": "^2.0.1",
6565
"@stablelib/x25519": "^2.0.1",

src/pages/dashboard/home/components/metrics/simple-metrics.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { PiChartBarDuotone, PiCpuDuotone, PiMemoryDuotone } from 'react-icons/pi'
1+
import { PiCpuDuotone, PiMemoryDuotone } from 'react-icons/pi'
22
import { GetStatsCommand } from '@remnawave/backend-contract'
33
import { TFunction } from 'i18next'
44

5-
import { prettyBytesUtil, prettyBytesUtilWithoutPrefix } from '@shared/utils/bytes'
5+
import { prettyBytesUtil } from '@shared/utils/bytes'
66

77
export const getSimpleMetrics = (
88
systemInfo: GetStatsCommand.Response['response'],
99
t: TFunction
1010
) => {
11-
const { memory, users, nodes } = systemInfo
11+
const { memory, nodes } = systemInfo
1212

1313
const totalRamGB = prettyBytesUtil(memory.total) ?? 0
1414
const usedRamGB = prettyBytesUtil(memory.active) ?? 0
@@ -20,12 +20,12 @@ export const getSimpleMetrics = (
2020
title: t('simple-metrics.total-online-on-nodes'),
2121
color: 'var(--mantine-color-blue-4)'
2222
},
23-
{
24-
value: prettyBytesUtilWithoutPrefix(Number(users.totalTrafficBytes)) ?? 0,
25-
icon: PiChartBarDuotone,
26-
title: t('simple-metrics.total-traffic'),
27-
color: 'var(--mantine-color-green-4)'
28-
},
23+
// {
24+
// value: prettyBytesUtilWithoutPrefix(Number(users.totalTrafficBytes)) ?? 0,
25+
// icon: PiChartBarDuotone,
26+
// title: t('simple-metrics.total-traffic'),
27+
// color: 'var(--mantine-color-green-4)'
28+
// },
2929
{
3030
value: `${usedRamGB} / ${totalRamGB}`,
3131
icon: PiMemoryDuotone,

0 commit comments

Comments
 (0)