diff --git a/web/display/src/LineStrips.tsx b/web/display/src/LineStrips.tsx index 2420e45..40464fa 100644 --- a/web/display/src/LineStrips.tsx +++ b/web/display/src/LineStrips.tsx @@ -100,12 +100,17 @@ export function LineStrips({ lineId, dialer, listener, range, m }: Props) { {text} ) - const direction = (id: string, route: string, title: string, rows: ReturnType[]) => ( + // 一个协议一组:QUIC 的去程和回程放在一起,TCP 的放在一起;每个方向上面一行写明是谁到谁,组底下一条时间轴 + const group = (id: string, proto: string, label: (dir: string) => string, entries: { route: string; dir: 'up' | 'down'; value: number | null | undefined; text: string; values: (number | null)[] }[]) => (
-
{route}
- {rows} + {entries.flatMap((e, k) => [ +
+ {e.route} +
, + row(`${id}-${e.dir}`, k * 2 + 2, proto, label(e.dir === 'up' ? '去程' : '回程'), e.value, e.text, e.values), + ])} {ticks.length > 0 ? ( -