mirror of
https://github.com/aclist/dztui.git
synced 2026-10-26 04:32:39 +01:00
fix: floating point syntax with printf
This commit is contained in:
1 parent
ffe3dac3a8
commit
6f3b272bfe
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user