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 Nov 3, 2023
1 parent 861cb97 commit f3587dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion queries/cdmq/cdm.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ mSearch = function (url, index, termKeys, values, source, aggs, size, sort) {
// For queries without aggregation
} else {
if (data.responses[i].hits == null) {
console.log( 'WARNING! msearch returned data.responses[' + i + '].hits is NULL');
console.log('WARNING! msearch returned data.responses[' + i + '].hits is NULL');
console.log(JSON.stringify(data.responses[i], null, 2));
return;
}
Expand Down
2 changes: 1 addition & 1 deletion queries/cdmq/get-metric-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Object.keys(metric_data.values)
labels[row] = [];
labels[row][0] = program.source;
labels[row][1] = program.type;
var subKeys = key.replace(/^</, "").replace(/>$/, "").split('>-<'); // key is the string with breakouts, for example, "client-2-10" for <cstype>-<csid>-<num> for source: mpstat type: Busy-CPU
var subKeys = key.replace(/^</, '').replace(/>$/, '').split('>-<'); // key is the string with breakouts, for example, "client-2-10" for <cstype>-<csid>-<num> for source: mpstat type: Busy-CPU
if (subKeys.length == 1 && subKeys[0] == '') {
subKeys = [];
}
Expand Down

0 comments on commit f3587dd

Please sign in to comment.