Skip to content

Commit

Permalink
fix annotations with full day/week/month intervals, closes #680
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Mar 1, 2019
1 parent 55158de commit 6449b8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/datasource-zabbix/datasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,9 @@ export class ZabbixDatasource {
/////////////////

annotationQuery(options) {
var timeFrom = Math.ceil(dateMath.parse(options.rangeRaw.from) / 1000);
var timeTo = Math.ceil(dateMath.parse(options.rangeRaw.to) / 1000);
const timeRange = options.range || options.rangeRaw;
const timeFrom = Math.ceil(dateMath.parse(timeRange.from) / 1000);
const timeTo = Math.ceil(dateMath.parse(timeRange.to) / 1000);
var annotation = options.annotation;
var showOkEvents = annotation.showOkEvents ? c.SHOW_ALL_EVENTS : c.SHOW_OK_EVENTS;

Expand Down

0 comments on commit 6449b8b

Please sign in to comment.