Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
402a5499
Commit
402a5499
authored
Aug 10, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug 35568.
parent
4e6a2a44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
apps/common/main/lib/component/MetricSpinner.js
apps/common/main/lib/component/MetricSpinner.js
+4
-4
No files found.
apps/common/main/lib/component/MetricSpinner.js
View file @
402a5499
...
...
@@ -494,10 +494,10 @@ define([
var
v_out
=
value
;
// to sec
if
(
fromUnit
==
'
ms
'
||
fromUnit
==
'
мс
'
)
v_out
=
v_out
/
1000
.
;
v_out
=
parseFloat
((
v_out
/
1000
.).
toFixed
(
6
))
;
// from sec
if
(
this
.
options
.
defaultUnit
==
'
ms
'
||
this
.
options
.
defaultUnit
==
'
мс
'
)
v_out
=
v_out
*
1000
;
v_out
=
parseFloat
((
v_out
*
1000
).
toFixed
(
6
))
;
return
v_out
;
}
...
...
@@ -517,13 +517,13 @@ define([
// from mm
if
(
this
.
options
.
defaultUnit
==
'
cm
'
||
this
.
options
.
defaultUnit
==
'
см
'
)
v_out
=
v_out
/
10
.
;
v_out
=
parseFloat
((
v_out
/
10
.).
toFixed
(
6
))
;
else
if
(
this
.
options
.
defaultUnit
==
'
pt
'
||
this
.
options
.
defaultUnit
==
'
пт
'
)
v_out
=
parseFloat
((
v_out
*
72.0
/
25.4
).
toFixed
(
3
));
else
if
(
this
.
options
.
defaultUnit
==
'
\
"
'
)
v_out
=
parseFloat
((
v_out
/
25.4
).
toFixed
(
3
));
else
if
(
this
.
options
.
defaultUnit
==
'
pc
'
)
v_out
=
v_out
*
6.0
/
25.4
;
v_out
=
parseFloat
((
v_out
*
6.0
/
25.4
).
toFixed
(
6
))
;
return
v_out
;
}
...
...
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