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
a5fd40ed
Commit
a5fd40ed
authored
Feb 23, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OpenTSDB: Fixed issue with auto interval variable going below 1s, Fixes #1325
parent
2c5f1925
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/app/features/opentsdb/datasource.js
+7
-5
No files found.
src/app/features/opentsdb/datasource.js
View file @
a5fd40ed
...
...
@@ -26,9 +26,6 @@ function (angular, _, kbn) {
var
end
=
convertToTSDBTime
(
options
.
range
.
to
);
var
qs
=
[];
if
(
options
.
interval
.
match
(
/
\.[
0-9
]
+s/
))
{
options
.
interval
=
parseFloat
(
options
.
interval
)
*
1000
+
"ms"
;
}
_
.
each
(
options
.
targets
,
function
(
target
)
{
qs
.
push
(
convertTargetToQuery
(
target
,
options
.
interval
));
});
...
...
@@ -158,8 +155,13 @@ function (angular, _, kbn) {
}
if
(
!
target
.
disableDownsampling
)
{
var
buf
=
target
.
downsampleInterval
||
interval
;
query
.
downsample
=
templateSrv
.
replace
(
buf
)
+
"-"
+
target
.
downsampleAggregator
;
interval
=
templateSrv
.
replace
(
target
.
downsampleInterval
||
interval
);
if
(
interval
.
match
(
/
\.[
0-9
]
+s/
))
{
interval
=
parseFloat
(
interval
)
*
1000
+
"ms"
;
}
query
.
downsample
=
interval
+
"-"
+
target
.
downsampleAggregator
;
}
query
.
tags
=
angular
.
copy
(
target
.
tags
);
...
...
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