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
505f0f65
Commit
505f0f65
authored
Jun 30, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated change log with PR #545
parent
8262a8de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
CHANGELOG.md
+4
-0
src/app/components/kbn.js
+16
-16
No files found.
CHANGELOG.md
View file @
505f0f65
...
...
@@ -3,6 +3,10 @@ vNext
**Changes**
-
Use unix epoch for Graphite from/to for absolute time ranges (Closes #536)
**Fixes**
-
Fix formatting negative values (PR #545)
# 1.6.1 (2014-06-24)
**New features or improvements**
...
...
src/app/components/kbn.js
View file @
505f0f65
...
...
@@ -26,52 +26,52 @@ function($, _, moment) {
kbn
.
round_interval
=
function
(
interval
)
{
switch
(
true
)
{
// 0.5s
case
(
Math
.
abs
(
interval
)
<=
500
):
case
(
interval
<=
500
):
return
100
;
// 0.1s
// 5s
case
(
Math
.
abs
(
interval
)
<=
5000
):
case
(
interval
<=
5000
):
return
1000
;
// 1s
// 7.5s
case
(
Math
.
abs
(
interval
)
<=
7500
):
case
(
interval
<=
7500
):
return
5000
;
// 5s
// 15s
case
(
Math
.
abs
(
interval
)
<=
15000
):
case
(
interval
<=
15000
):
return
10000
;
// 10s
// 45s
case
(
Math
.
abs
(
interval
)
<=
45000
):
case
(
interval
<=
45000
):
return
30000
;
// 30s
// 3m
case
(
Math
.
abs
(
interval
)
<=
180000
):
case
(
interval
<=
180000
):
return
60000
;
// 1m
// 9m
case
(
Math
.
abs
(
interval
)
<=
450000
):
case
(
interval
<=
450000
):
return
300000
;
// 5m
// 20m
case
(
Math
.
abs
(
interval
)
<=
1200000
):
case
(
interval
<=
1200000
):
return
600000
;
// 10m
// 45m
case
(
Math
.
abs
(
interval
)
<=
2700000
):
case
(
interval
<=
2700000
):
return
1800000
;
// 30m
// 2h
case
(
Math
.
abs
(
interval
)
<=
7200000
):
case
(
interval
<=
7200000
):
return
3600000
;
// 1h
// 6h
case
(
Math
.
abs
(
interval
)
<=
21600000
):
case
(
interval
<=
21600000
):
return
10800000
;
// 3h
// 24h
case
(
Math
.
abs
(
interval
)
<=
86400000
):
case
(
interval
<=
86400000
):
return
43200000
;
// 12h
// 48h
case
(
Math
.
abs
(
interval
)
<=
172800000
):
case
(
interval
<=
172800000
):
return
86400000
;
// 24h
// 1w
case
(
Math
.
abs
(
interval
)
<=
604800000
):
case
(
interval
<=
604800000
):
return
86400000
;
// 24h
// 3w
case
(
Math
.
abs
(
interval
)
<=
1814400000
):
case
(
interval
<=
1814400000
):
return
604800000
;
// 1w
// 2y
case
(
Math
.
abs
(
interval
)
<
3628800000
):
case
(
interval
<
3628800000
):
return
2592000000
;
// 30d
default
:
return
31536000000
;
// 1y
...
...
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