From d9c7eb9fa3246ac7b346471cc6ec2636d27466f5 Mon Sep 17 00:00:00 2001 From: Rodrigo Pastrana Date: Wed, 3 Jul 2024 12:19:00 -0400 Subject: [PATCH] HPCC-32201 Grafana LogAccess Timerange test fix - Fixes invalid timerange test Signed-off-by: Rodrigo Pastrana --- system/logaccess/Grafana/CurlClient/GrafanaCurlClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/logaccess/Grafana/CurlClient/GrafanaCurlClient.cpp b/system/logaccess/Grafana/CurlClient/GrafanaCurlClient.cpp index 5ada0237838..f7e58dc68b3 100644 --- a/system/logaccess/Grafana/CurlClient/GrafanaCurlClient.cpp +++ b/system/logaccess/Grafana/CurlClient/GrafanaCurlClient.cpp @@ -651,7 +651,7 @@ bool GrafanaLogAccessCurlClient::fetchLog(LogQueryResultDetails & resultDetails, encodeURL(fullQuery, logLineParser.str()); fullQuery.appendf("&start=%s000000000", std::to_string(trange.getStartt().getSimple()).c_str()); - if (trange.getEndt().isNull() != -1) //aka 'to' has been initialized + if (!trange.getEndt().isNull()) { fullQuery.appendf("&end=%s000000000", std::to_string(trange.getEndt().getSimple()).c_str()); }