Fix #495 - Rescale traceroute SNR
This commit is contained in:
@@ -26,8 +26,8 @@ export const TracerouteResponseDialog = ({
|
|||||||
const { nodes } = useDevice();
|
const { nodes } = useDevice();
|
||||||
const route: number[] = traceroute?.data.route ?? [];
|
const route: number[] = traceroute?.data.route ?? [];
|
||||||
const routeBack: number[] = traceroute?.data.routeBack ?? [];
|
const routeBack: number[] = traceroute?.data.routeBack ?? [];
|
||||||
const snrTowards = traceroute?.data.snrTowards ?? [];
|
const snrTowards = (traceroute?.data.snrTowards ?? []).map(snr => snr / 4);
|
||||||
const snrBack = traceroute?.data.snrBack ?? [];
|
const snrBack = (traceroute?.data.snrBack ?? []).map(snr => snr / 4);
|
||||||
const from = nodes.get(traceroute?.from ?? 0);
|
const from = nodes.get(traceroute?.from ?? 0);
|
||||||
const longName = from?.user?.longName ??
|
const longName = from?.user?.longName ??
|
||||||
(from ? `!${numberToHexUnpadded(from?.num)}` : "Unknown");
|
(from ? `!${numberToHexUnpadded(from?.num)}` : "Unknown");
|
||||||
|
|||||||
Reference in New Issue
Block a user