summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorJeelsBoobz <[email protected]>2023-04-25 15:25:28 +0700
committerJeelsBoobz <[email protected]>2023-04-25 15:25:28 +0700
commitb89d5095b0d8f7f838111d185b0bbcc53b973983 (patch)
treeaa67845b259c4fd1df45c24d0b00cc9ae8b23946 /src/components
parent00babd54e59c71c08f1e1d363be937ed4b8a13c8 (diff)
Core: better strings
Diffstat (limited to 'src/components')
-rw-r--r--src/components/TrafficNow.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/TrafficNow.tsx b/src/components/TrafficNow.tsx
index 8dd6ee4..ae69910 100644
--- a/src/components/TrafficNow.tsx
+++ b/src/components/TrafficNow.tsx
@@ -18,7 +18,7 @@ export default connect(mapState)(TrafficNow);
function TrafficNow({ apiConfig }) {
const { t } = useTranslation();
const { upStr, downStr } = useSpeed(apiConfig);
- const { upTotal, dlTotal, connNumber, mTotal } = useConnection(apiConfig);
+ const { upTotal, dlTotal, connNumber, mUsage } = useConnection(apiConfig);
return (
<div className={s0.TrafficNow}>
<div className={s0.sec}>
@@ -42,8 +42,8 @@ function TrafficNow({ apiConfig }) {
<div>{connNumber}</div>
</div>
<div className={s0.sec}>
- <div>{t('Memory Total')}</div>
- <div>{mTotal}</div>
+ <div>{t('Memory Usage')}</div>
+ <div>{mUsage}</div>
</div>
</div>
);
@@ -67,7 +67,7 @@ function useConnection(apiConfig) {
upTotal: '0 B',
dlTotal: '0 B',
connNumber: 0,
- mTotal: '0 B',
+ mUsage: '0 B',
});
const read = useCallback(
({ downloadTotal, uploadTotal, connections, memory }) => {
@@ -75,7 +75,7 @@ function useConnection(apiConfig) {
upTotal: prettyBytes(uploadTotal),
dlTotal: prettyBytes(downloadTotal),
connNumber: connections.length,
- mTotal: prettyBytes(memory),
+ mUsage: prettyBytes(memory),
});
},
[setState]