Fixed sonde climb rate and TTL

This commit is contained in:
2026-09-14 08:43:46 -04:00
parent 9f65318aee
commit 6e21a8626c
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ const speedVal = computed(() => {
})
const climbVal = computed(() => {
if (latest.value?.vertical_speed == null) return null
if (latest.value?.climb == null) return null
const v = vertical.value.convert(Number(latest.value.vertical_speed))
return v >= 0 ? `+${v}` : String(v)

View File

@@ -12,7 +12,7 @@ import SondePopup from '@/components/WeatherBalloon.vue';
import {bringToFront} from './zindex';
const API = BASE + '/api';
const SONDE_STALE_TTL = 60_000;
const SONDE_STALE_TTL = 60_000 * 5;
interface SondeReading {
timestamp: number;