From 062a3634a9c6bc1f2bb6dfa2ad8fdd12d9530e43 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Sun, 19 Dec 2021 09:17:57 +0100 Subject: [PATCH] Fixed entso-e debugging --- src/entsoe/EntsoeApi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/entsoe/EntsoeApi.cpp b/src/entsoe/EntsoeApi.cpp index 12b4e2a1..1b7b33f0 100644 --- a/src/entsoe/EntsoeApi.cpp +++ b/src/entsoe/EntsoeApi.cpp @@ -99,7 +99,8 @@ bool EntsoeApi::loop() { if(debugger->isActive(RemoteDebug::INFO)) debugger->printf("(EntsoeApi) Setting midnight millis %lu\n", midnightMillis); } } else if(now > midnightMillis) { - if(debugger->isActive(RemoteDebug::INFO)) debugger->printf("(EntsoeApi) Rotating price objects at %lu\n", now); + time_t t = time(nullptr); + if(debugger->isActive(RemoteDebug::INFO)) debugger->printf("(EntsoeApi) Rotating price objects at %lu\n", t); delete today; today = tomorrow; tomorrow = NULL;