From 1776e2962f521e8e01aca055a8539fe388c03031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20X=2E=20F=C3=BCrst?= Date: Wed, 5 Nov 2025 10:05:03 +0000 Subject: [PATCH] =?UTF-8?q?e10tel=20nicht=20zum=20Client=20=C3=BCbertragen?= =?UTF-8?q?=20-=20unn=C3=B6tig?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- databases/influx_sql.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/databases/influx_sql.js b/databases/influx_sql.js index 9692ac9..dd96146 100644 --- a/databases/influx_sql.js +++ b/databases/influx_sql.js @@ -234,12 +234,13 @@ export const fetchActData = async (opts) => { // Transform data to add E10tel_eq field for compatibility with Flux version // E10tel_eq = 10^(LA_max/10) + if (opts.data !== 'live') { result.values = result.values.map(record => ({ ...record, E10tel_eq: record.LA_max !== null && record.LA_max !== undefined ? Math.pow(10, record.LA_max / 10) : null - })) + }))} return result }