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
2b932492
Commit
2b932492
authored
Jan 12, 2017
by
oliverpool
Committed by
GitHub
Jan 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a `diff` aggregate
`diff = current - first` (when available)
parent
60a20410
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
public/app/core/time_series2.ts
+4
-0
No files found.
public/app/core/time_series2.ts
View file @
2b932492
...
...
@@ -104,6 +104,7 @@ export default class TimeSeries {
this
.
stats
.
current
=
null
;
this
.
stats
.
first
=
null
;
this
.
stats
.
delta
=
0
;
this
.
stats
.
diff
=
null
;
this
.
stats
.
range
=
null
;
this
.
stats
.
timeStep
=
Number
.
MAX_VALUE
;
this
.
allIsNull
=
true
;
...
...
@@ -193,6 +194,9 @@ export default class TimeSeries {
if
(
this
.
stats
.
max
!==
null
&&
this
.
stats
.
min
!==
null
)
{
this
.
stats
.
range
=
this
.
stats
.
max
-
this
.
stats
.
min
;
}
if
(
this
.
stats
.
current
!==
null
&&
this
.
stats
.
first
!==
null
)
{
this
.
stats
.
diff
=
this
.
stats
.
current
-
this
.
stats
.
first
;
}
this
.
stats
.
count
=
result
.
length
;
return
result
;
...
...
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