Skip to content

Commit

Permalink
it's prettier now...
Browse files Browse the repository at this point in the history
  • Loading branch information
atheurer committed Aug 7, 2024
1 parent 85f92b9 commit fbed299
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions queries/cdmq/cdm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1822,9 +1822,9 @@ getMetricDataFromIdsSets = function (url, sets, metricGroupIdsByLabelSets) {
var index = JSON.parse(indexjson);
var req = JSON.parse(reqjson);
ndjson[ndIdx] += JSON.stringify(index) + '\n';
ndjsonLineNum++;
ndjsonLineNum++;
ndjson[ndIdx] += JSON.stringify(req) + '\n';
ndjsonLineNum++;
ndjsonLineNum++;
// This second request is for the total weight of the previous weighted average request.
// We need this because we are going to recompute the weighted average by adding
// a few more documents that are partially outside the time domain.
Expand All @@ -1849,9 +1849,9 @@ getMetricDataFromIdsSets = function (url, sets, metricGroupIdsByLabelSets) {
index = JSON.parse(indexjson);
req = JSON.parse(reqjson);
ndjson[ndIdx] += JSON.stringify(index) + '\n';
ndjsonLineNum++;
ndjsonLineNum++;
ndjson[ndIdx] += JSON.stringify(req) + '\n';
ndjsonLineNum++;
ndjsonLineNum++;
// This third request is for documents that had its begin during or before the time range, but
// its end was after the time range.
indexjson = '{"index": "' + getIndexBaseName() + 'metric_data' + '" }\n';
Expand Down

0 comments on commit fbed299

Please sign in to comment.