Fixed sonde climb rate and TTL
This commit is contained in:
@@ -95,7 +95,7 @@ const speedVal = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const climbVal = 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))
|
const v = vertical.value.convert(Number(latest.value.vertical_speed))
|
||||||
return v >= 0 ? `+${v}` : String(v)
|
return v >= 0 ? `+${v}` : String(v)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import SondePopup from '@/components/WeatherBalloon.vue';
|
|||||||
import {bringToFront} from './zindex';
|
import {bringToFront} from './zindex';
|
||||||
|
|
||||||
const API = BASE + '/api';
|
const API = BASE + '/api';
|
||||||
const SONDE_STALE_TTL = 60_000;
|
const SONDE_STALE_TTL = 60_000 * 5;
|
||||||
|
|
||||||
interface SondeReading {
|
interface SondeReading {
|
||||||
timestamp: number;
|
timestamp: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user