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
a38da2f7
Commit
a38da2f7
authored
Apr 29, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1901 from davidak/master
add gigabytes as unit
parents
593f2e08
c4ac3d61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
public/app/components/kbn.js
+2
-0
No files found.
public/app/components/kbn.js
View file @
a38da2f7
...
...
@@ -376,6 +376,7 @@ function($, _, moment) {
kbn
.
valueFormats
.
bytes
=
kbn
.
formatFuncCreator
(
1024
,
[
' B'
,
' KiB'
,
' MiB'
,
' GiB'
,
' TiB'
,
' PiB'
,
' EiB'
,
' ZiB'
,
' YiB'
]);
kbn
.
valueFormats
.
kbytes
=
kbn
.
formatFuncCreator
(
1024
,
[
' KiB'
,
' MiB'
,
' GiB'
,
' TiB'
,
' PiB'
,
' EiB'
,
' ZiB'
,
' YiB'
]);
kbn
.
valueFormats
.
mbytes
=
kbn
.
formatFuncCreator
(
1024
,
[
' MiB'
,
' GiB'
,
' TiB'
,
' PiB'
,
' EiB'
,
' ZiB'
,
' YiB'
]);
kbn
.
valueFormats
.
gbytes
=
kbn
.
formatFuncCreator
(
1024
,
[
' GiB'
,
' TiB'
,
' PiB'
,
' EiB'
,
' ZiB'
,
' YiB'
]);
kbn
.
valueFormats
.
bps
=
kbn
.
formatFuncCreator
(
1000
,
[
' bps'
,
' Kbps'
,
' Mbps'
,
' Gbps'
,
' Tbps'
,
' Pbps'
,
' Ebps'
,
' Zbps'
,
' Ybps'
]);
kbn
.
valueFormats
.
Bps
=
kbn
.
formatFuncCreator
(
1000
,
[
' Bps'
,
' KBps'
,
' MBps'
,
' GBps'
,
' TBps'
,
' PBps'
,
' EBps'
,
' ZBps'
,
' YBps'
]);
kbn
.
valueFormats
.
short
=
kbn
.
formatFuncCreator
(
1000
,
[
''
,
' K'
,
' Mil'
,
' Bil'
,
' Tri'
,
' Qaudr'
,
' Quint'
,
' Sext'
,
' Sept'
]);
...
...
@@ -547,6 +548,7 @@ function($, _, moment) {
{
text
:
'bytes'
,
value
:
'bytes'
},
{
text
:
'kilobytes'
,
value
:
'kbytes'
},
{
text
:
'megabytes'
,
value
:
'mbytes'
},
{
text
:
'gigabytes'
,
value
:
'gbytes'
},
]
},
{
...
...
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