mirror of
https://github.com/aclist/dztui.git
synced 2026-08-26 09:47:36 +02:00
fix: floating point syntax with printf
This commit is contained in:
parent
ffe3dac3a8
commit
6f3b272bfe
@ -453,7 +453,7 @@ get_dist(){
|
||||
else
|
||||
logger INFO "Resolved remote server geolocation to '$remote_lat, $remote_lon'"
|
||||
local dist=$($km_helper "$local_lat" "$local_lon" "$remote_lat" "$remote_lon")
|
||||
LC_NUMERIC=C printf "%d" "$dist"
|
||||
LC_NUMERIC=C printf "%.0f" "$dist"
|
||||
logger INFO "Distance: $dist km"
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user