1- import { PiChartBarDuotone , PiCpuDuotone , PiMemoryDuotone } from 'react-icons/pi'
1+ import { PiCpuDuotone , PiMemoryDuotone } from 'react-icons/pi'
22import { GetStatsCommand } from '@remnawave/backend-contract'
33import { TFunction } from 'i18next'
44
5- import { prettyBytesUtil , prettyBytesUtilWithoutPrefix } from '@shared/utils/bytes'
5+ import { prettyBytesUtil } from '@shared/utils/bytes'
66
77export 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