Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
f5d5d9a5
Commit
f5d5d9a5
authored
Jul 31, 2014
by
Jordan Rinke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed 2 coding errors noted by travis
parent
f958924b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/app/services/influxdb/influxdbDatasource.js
+2
-2
No files found.
src/app/services/influxdb/influxdbDatasource.js
View file @
f5d5d9a5
...
@@ -267,7 +267,7 @@ function (angular, _, kbn, InfluxSeries) {
...
@@ -267,7 +267,7 @@ function (angular, _, kbn, InfluxSeries) {
case
"w"
:
case
"w"
:
expires
+=
ttlLength
*
604800000
;
expires
+=
ttlLength
*
604800000
;
default
:
default
:
throw
"Unknown ttl duration format"
;
throw
"Unknown ttl duration format"
;
}
}
var
data
=
[{
var
data
=
[{
...
@@ -298,7 +298,7 @@ function (angular, _, kbn, InfluxSeries) {
...
@@ -298,7 +298,7 @@ function (angular, _, kbn, InfluxSeries) {
var
expiresCol
=
_
.
indexOf
(
results
[
0
].
columns
,
'expires'
);
var
expiresCol
=
_
.
indexOf
(
results
[
0
].
columns
,
'expires'
);
var
expiresTime
=
results
[
0
].
points
[
0
][
expiresCol
];
var
expiresTime
=
results
[
0
].
points
[
0
][
expiresCol
];
if
(
Date
.
now
()
>
expiresTime
&&
isTemp
)
{
if
(
Date
.
now
()
>
expiresTime
&&
isTemp
)
{
throw
"Dashboard has expired"
;
throw
"Dashboard has expired"
;
}
}
var
dashCol
=
_
.
indexOf
(
results
[
0
].
columns
,
'dashboard'
);
var
dashCol
=
_
.
indexOf
(
results
[
0
].
columns
,
'dashboard'
);
var
dashJson
=
results
[
0
].
points
[
0
][
dashCol
];
var
dashJson
=
results
[
0
].
points
[
0
][
dashCol
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment