fix: linting errors
This commit is contained in:
parent
47f81f2579
commit
13b318690d
@ -27,7 +27,7 @@ void WebApiPrometheusClass::loop()
|
|||||||
void WebApiPrometheusClass::onPrometheusMetricsGet(AsyncWebServerRequest* request)
|
void WebApiPrometheusClass::onPrometheusMetricsGet(AsyncWebServerRequest* request)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
auto stream = request->beginResponseStream("text/plain; charset=utf-8", 4096 * INV_MAX_COUNT); // TODO helge: check if this calculation is correct
|
auto stream = request->beginResponseStream("text/plain; charset=utf-8", 4096 * INV_MAX_COUNT); // TODO (helge) check if this calculation is correct
|
||||||
|
|
||||||
stream->print("# HELP opendtu_build Build info\n");
|
stream->print("# HELP opendtu_build Build info\n");
|
||||||
stream->print("# TYPE opendtu_build gauge\n");
|
stream->print("# TYPE opendtu_build gauge\n");
|
||||||
|
|||||||
@ -69,7 +69,7 @@ void WebApiWsLiveClass::loop()
|
|||||||
String buffer;
|
String buffer;
|
||||||
// free JsonDocument as soon as possible
|
// free JsonDocument as soon as possible
|
||||||
{
|
{
|
||||||
DynamicJsonDocument root(4096 * INV_MAX_COUNT); // TODO helge: check if this calculation is correct
|
DynamicJsonDocument root(4096 * INV_MAX_COUNT); // TODO (helge) check if this calculation is correct
|
||||||
JsonVariant var = root;
|
JsonVariant var = root;
|
||||||
generateJsonResponse(var);
|
generateJsonResponse(var);
|
||||||
serializeJson(root, buffer);
|
serializeJson(root, buffer);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user