diff --git a/lib/plugins/graphite/send-annotation.js b/lib/plugins/graphite/send-annotation.js index 8b5864ef3..ea5261980 100644 --- a/lib/plugins/graphite/send-annotation.js +++ b/lib/plugins/graphite/send-annotation.js @@ -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 =