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
cef3800c
Commit
cef3800c
authored
Dec 20, 2017
by
Carl Bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes invalid valud/timestamp order
parent
7977d6b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
pkg/tsdb/models/proxy/wrapper.go
+3
-1
No files found.
pkg/tsdb/models/proxy/wrapper.go
View file @
cef3800c
...
...
@@ -77,9 +77,11 @@ func (tw *TsdbWrapper) Query(ctx context.Context, ds *models.DataSource, query *
points
:=
tsdb
.
TimeSeriesPoints
{}
for
_
,
p
:=
range
s
.
Points
{
po
:=
tsdb
.
NewTimePoint
(
null
.
FloatFrom
(
float64
(
p
.
Timestamp
.
Nanos
)),
p
.
Value
)
if
p
.
Timestamp
!=
nil
{
po
:=
tsdb
.
NewTimePoint
(
null
.
FloatFrom
(
p
.
Value
),
float64
(
p
.
Timestamp
.
Seconds
))
points
=
append
(
points
,
po
)
}
}
res
.
Results
[
r
.
RefId
]
.
Series
=
append
(
res
.
Results
[
r
.
RefId
]
.
Series
,
&
tsdb
.
TimeSeries
{
Name
:
s
.
Name
,
...
...
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