mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fixed jshint errors, dam fever is coming back, time to sleep...
This commit is contained in:
parent
a5feb639d9
commit
e3561ce555
@ -1,17 +1,11 @@
|
|||||||
define([
|
define([
|
||||||
'underscore',
|
'underscore'
|
||||||
'./interval'
|
|
||||||
],
|
],
|
||||||
function (_, Interval) {
|
function (_) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var ts = {};
|
var ts = {};
|
||||||
|
|
||||||
// map compatable parseInt
|
|
||||||
function base10Int(val) {
|
|
||||||
return parseInt(val, 10);
|
|
||||||
}
|
|
||||||
|
|
||||||
// trim the ms off of a time, but return it with empty ms.
|
// trim the ms off of a time, but return it with empty ms.
|
||||||
function getDatesTime(date) {
|
function getDatesTime(date) {
|
||||||
return Math.floor(date.getTime() / 1000)*1000;
|
return Math.floor(date.getTime() / 1000)*1000;
|
||||||
@ -57,9 +51,6 @@ function (_, Interval) {
|
|||||||
if (fillStyle === 'null as zero') {
|
if (fillStyle === 'null as zero') {
|
||||||
currentValue = 0;
|
currentValue = 0;
|
||||||
}
|
}
|
||||||
if (fillStyle === 'null') {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
result.push([currentTime * 1000, currentValue]);
|
result.push([currentTime * 1000, currentValue]);
|
||||||
|
Loading…
Reference in New Issue
Block a user