fix: correct ping display logic for upside-down mode

Change from showing ping for both UP and DOWN in upside-down mode
to showing ping only for the successful status:
- Normal mode: show ping when status === UP
- Upside-down mode: show ping when status === DOWN

This prevents the green up line from overlaying on top of the
red down marker in upside-down mode.
This commit is contained in:
Satoshi Dev 2026-01-14 15:22:56 +01:00
parent 67b9ff9a2d
commit a05b34ffa7

View File

@ -391,7 +391,7 @@ export default {
pingData.push({
x,
y: (beat.status === UP || (beat.status === DOWN && isUpsideDown)) ? beat.ping : null,
y: (isUpsideDown ? beat.status === DOWN : beat.status === UP) ? beat.ping : null,
});
downData.push({
x,