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
3a6af0a6
Unverified
Commit
3a6af0a6
authored
Feb 08, 2021
by
Torkel Ödegaard
Committed by
GitHub
Feb 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Units: Fixes formatting of duration units (#30982)
parent
0a7c6c68
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
1 deletions
+1
-1
packages/grafana-data/src/valueFormats/dateTimeFormatters.ts
+1
-1
packages/grafana-data/src/valueFormats/valueFormats.test.ts
+0
-0
No files found.
packages/grafana-data/src/valueFormats/dateTimeFormatters.ts
View file @
3a6af0a6
...
...
@@ -227,7 +227,7 @@ export function toDuration(size: number, decimals: DecimalCount, timeScale: Inte
let
decrementDecimals
=
false
;
let
decimalsCount
=
0
;
if
(
decimals
!==
null
||
decimals
!==
undefined
)
{
if
(
decimals
!==
null
&&
decimals
!==
undefined
)
{
decimalsCount
=
decimals
as
number
;
}
...
...
packages/grafana-data/src/valueFormats/valueFormats.test.ts
View file @
3a6af0a6
This diff is collapsed.
Click to expand it.
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