The expiration time for new job artifacts in CI/CD pipelines is now 30 days (GitLab default). Previously generated artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit b3b06296 authored by Alessio Netti's avatar Alessio Netti
Browse files

dcdbquery: fixing assignment of start-end timestamps

- Fuzzy queries now work properly even when using relative timestamps
such as "now-5m"
parent 0ec32bb3
......@@ -143,9 +143,13 @@ int main(int argc, char * const argv[])
DCDB::TimeStamp start, end;
if (jobId.size() == 0) {
try {
bool local = myQuery->getLocalTimeEnabled();
start = DCDB::TimeStamp(argvReal[argcReal-2], local);
end = DCDB::TimeStamp(argvReal[argcReal-1], local);
bool local = myQuery->getLocalTimeEnabled();
start = DCDB::TimeStamp(argvReal[argcReal-2], local);
if(std::string(argvReal[argcReal-2]) != std::string(argvReal[argcReal-1])) {
end = DCDB::TimeStamp(argvReal[argcReal - 1], local);
} else {
end = start;
}
} catch (std::exception& e) {
std::cout << "Wrong time format." << std::endl;
exit(EXIT_FAILURE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment