mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 04:59:15 -06:00
(cloudwatch) fix null point mode
This commit is contained in:
parent
924ecce2c3
commit
4254aa5f5a
@ -263,7 +263,7 @@ function (angular, _) {
|
||||
})
|
||||
.each(function(dp) {
|
||||
var timestamp = new Date(dp.Timestamp).getTime();
|
||||
if (lastTimestamp && (timestamp - lastTimestamp) > periodMs * 2) {
|
||||
if (lastTimestamp && (timestamp - lastTimestamp) > periodMs) {
|
||||
dps.push([null, lastTimestamp + periodMs]);
|
||||
}
|
||||
lastTimestamp = timestamp;
|
||||
|
@ -55,7 +55,7 @@ describe('CloudWatchDatasource', function() {
|
||||
},
|
||||
{
|
||||
Average: 5,
|
||||
Timestamp: 'Wed Dec 31 1969 16:20:00 GMT-0800 (PST)'
|
||||
Timestamp: 'Wed Dec 31 1969 16:15:00 GMT-0800 (PST)'
|
||||
}
|
||||
],
|
||||
Label: 'CPUUtilization'
|
||||
|
Loading…
Reference in New Issue
Block a user