Polish device traffic charts and bump Harbor client versions
Build and Deploy Gateway / build-and-push (push) Successful in 13s
Build and Deploy Gateway / deploy (push) Successful in 7s

This commit is contained in:
2026-08-07 20:19:27 +03:00
parent ffd899033e
commit e6666558b7
5 changed files with 129 additions and 15 deletions
+7
View File
@@ -51,6 +51,13 @@ export function trafficSampleMetrics(gatewayValue, proxyValue, maxValue, scale =
};
}
export function trafficAxisMid(maxValue, scale = 'linear') {
const max = byteString(maxValue);
if (!max) return 0n;
if (scale !== 'log') return max / 2n;
return BigInt(Math.max(1, Math.round(Math.expm1(Math.log1p(Number(max)) / 2))));
}
export function sortDevicesByTraffic(devices, direction = 'desc') {
const factor = direction === 'asc' ? 1 : -1;
return (Array.isArray(devices) ? devices : [])