Fix broken annotation (#3238)
This commit is contained in:
parent
b472138d6c
commit
bbb663da2e
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in New Issue