Skip to content

Commit

Permalink
remove unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Jun 30, 2020
1 parent 628f71c commit ad6d359
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { UMElasticsearchQueryFn } from '../adapters';
import { getFilterClause } from '../helper';
import { HistogramResult, HistogramQueryResult } from '../../../common/runtime_types';
import { QUERY } from '../../../common/constants';
import { getHistogramInterval } from '../helper/get_histogram_interval';

export interface GetPingHistogramParams {
/** @member dateRangeStart timestamp bounds */
Expand Down Expand Up @@ -42,8 +41,7 @@ export const getPingHistogram: UMElasticsearchQueryFn<
if (bucketSize) {
seriesHistogram.date_histogram = {
field: '@timestamp',
fixed_interval:
bucketSize || getHistogramInterval(from, to, QUERY.DEFAULT_BUCKET_COUNT) + 'ms',
fixed_interval: bucketSize,
missing: 0,
};
} else {
Expand Down

0 comments on commit ad6d359

Please sign in to comment.