From 3371b661c2975be86079edd2b5b1a0fce839e6aa Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 6 May 2024 17:53:07 +0200 Subject: [PATCH] fix: ufactor calc --- src/components/StationsView/StationsStats.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/StationsView/StationsStats.vue b/src/components/StationsView/StationsStats.vue index 9d34c2c..6f1bf52 100644 --- a/src/components/StationsView/StationsStats.vue +++ b/src/components/StationsView/StationsStats.vue @@ -42,7 +42,7 @@ export default defineComponent({ calculateFactorStyle() { if (this.uFactor == 0) return ''; - const norm = this.uFactor == 0 ? 1 : Math.max(Math.min(1 / this.uFactor / 2, 1), 0); + const norm = this.uFactor == 0 ? 1 : Math.max(Math.min(this.uFactor / 2, 1), 0); const lerp = 120 * norm; return `color: hsl(${lerp}, 100%, 60%)`;