Fix broken annotation (#3238)

This commit is contained in:
Peter Hedenskog 2021-01-06 16:11:31 +01:00 committed by GitHub
parent b472138d6c
commit bbb663da2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
'use strict';
const http = require('http');
const https = require('https');
const dayjs = require('dayjs');
const log = require('intel').getLogger('sitespeedio.plugin.graphite');
const graphiteUtil = require('../../support/tsdbUtil');
const annotationsHelper = require('../../support/annotationsHelper');
@ -75,7 +74,7 @@ module.exports = {
);
const timestamp = options.graphite.annotationRetentionMinutes
? dayjs(roundDownToMinutes(time.valueOf()))
? Math.round(roundDownToMinutes(time.valueOf()) / 1000)
: Math.round(time.valueOf() / 1000);
let what =