Fixed sonde climb rate and TTL
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user