mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-27 16:00:09 +08:00
fix: use mihomo traffic totals
This commit is contained in:
@@ -167,11 +167,9 @@ export const EnhancedTrafficStats = () => {
|
||||
const [up, upUnit] = parseTraffic(traffic?.up || 0)
|
||||
const [down, downUnit] = parseTraffic(traffic?.down || 0)
|
||||
const [inuse, inuseUnit] = parseTraffic(memory?.inuse || 0)
|
||||
const [uploadTotal, uploadTotalUnit] = parseTraffic(
|
||||
connectionSummary?.uploadTotal,
|
||||
)
|
||||
const [uploadTotal, uploadTotalUnit] = parseTraffic(traffic?.upTotal || 0)
|
||||
const [downloadTotal, downloadTotalUnit] = parseTraffic(
|
||||
connectionSummary?.downloadTotal,
|
||||
traffic?.downTotal || 0,
|
||||
)
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user