Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mesh
meshmap
Commits
2368597c
Commit
2368597c
authored
Mar 10, 2019
by
Eric - kg6wxc
Browse files
remove unneeded round()
parent
53b87c03
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/map_functions.inc
View file @
2368597c
...
@@ -403,9 +403,9 @@ function load_LinkedTO($node_info, $TopoList)
...
@@ -403,9 +403,9 @@ function load_LinkedTO($node_info, $TopoList)
$display_cost
=
' ('
.
$costArray
[
'costTo'
]
.
'/'
.
$costArray
[
'costFrom'
]
.
') '
;
$display_cost
=
' ('
.
$costArray
[
'costTo'
]
.
'/'
.
$costArray
[
'costFrom'
]
.
') '
;
}
}
if
(
$GLOBALS
[
'USER_SETTINGS'
][
'kilometers'
])
{
if
(
$GLOBALS
[
'USER_SETTINGS'
][
'kilometers'
])
{
$linkedToList
.
=
$linkedNodeName
.
$display_cost
.
round
(
$costArray
[
'distance'
]
,
2
)
.
'km ('
.
round
(
$costArray
[
'distance'
]
*
0.62137
,
2
)
.
'mi) '
.
$costArray
[
'bearing'
]
.
'°<br>'
;
$linkedToList
.
=
$linkedNodeName
.
$display_cost
.
$costArray
[
'distance'
]
.
'km ('
.
round
(
$costArray
[
'distance'
]
*
0.62137
,
2
)
.
'mi) '
.
$costArray
[
'bearing'
]
.
'°<br>'
;
}
else
{
}
else
{
$linkedToList
.
=
$linkedNodeName
.
$display_cost
.
round
(
$costArray
[
'distance'
]
*
0.62137
,
2
)
.
'mi ('
.
round
(
$costArray
[
'distance'
]
,
2
)
.
'km) '
.
$costArray
[
'bearing'
]
.
'°<br>'
;
$linkedToList
.
=
$linkedNodeName
.
$display_cost
.
round
(
$costArray
[
'distance'
]
*
0.62137
,
2
)
.
'mi ('
.
$costArray
[
'distance'
]
.
'km) '
.
$costArray
[
'bearing'
]
.
'°<br>'
;
}
}
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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