From ac57e1690290423496b231e6dd761559a3f2d6e5 Mon Sep 17 00:00:00 2001 From: lumapu Date: Thu, 20 Jul 2023 08:38:09 +0200 Subject: [PATCH] fix prometheus builds --- src/web/web.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/web.h b/src/web/web.h index 70fae62e..b8fe7a79 100644 --- a/src/web/web.h +++ b/src/web/web.h @@ -737,7 +737,7 @@ class Web { case metricsStateInverter3: // Information about all inverters configured : fit to one packet metrics += "# TYPE ahoy_solar_inverter_is_available gauge\n"; metrics += inverterMetric(topic, sizeof(topic),"ahoy_solar_inverter_is_available {inverter=\"%s\"} %d\n", - [](Inverter<> *iv,IApp *mApp)-> uint64_t {return iv->isAvailable(mApp->getTimestamp());}); + [](Inverter<> *iv,IApp *mApp)-> uint64_t {return iv->isAvailable();}); len = snprintf((char *)buffer,maxLen,"%s",metrics.c_str()); metricsStep = metricsStateInverter4; break; @@ -745,7 +745,7 @@ class Web { case metricsStateInverter4: // Information about all inverters configured : fit to one packet metrics += "# TYPE ahoy_solar_inverter_is_producing gauge\n"; metrics += inverterMetric(topic, sizeof(topic),"ahoy_solar_inverter_is_producing {inverter=\"%s\"} %d\n", - [](Inverter<> *iv,IApp *mApp)-> uint64_t {return iv->isProducing(mApp->getTimestamp());}); + [](Inverter<> *iv,IApp *mApp)-> uint64_t {return iv->isProducing();}); len = snprintf((char *)buffer,maxLen,"%s",metrics.c_str()); // Start Realtime Field loop metricsFieldId = FLD_UDC;