1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-28 21:32:36 +01:00

fix: normalize user locale (#168)

This commit is contained in:
aclist 2024-11-28 23:25:28 +09:00
parent 94f9ac52c5
commit d5162d6d9e
3 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,9 @@
# Changelog
## [5.6.0-beta.8] 2024-11-28
### Fixed
- Normalize user locale when parsing floats
## [5.6.0-beta.7] 2024-11-28
### Changed
- Add additional logging when fetching installed mods

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -o pipefail
version=5.6.0-beta.7
version=5.6.0-beta.8
#CONSTANTS
aid=221100
@ -572,7 +572,7 @@ fetch_helpers_by_sum(){
["ui.py"]="1c6e5b996eccd891a3e56930e28246da"
["query_v2.py"]="55d339ba02512ac69de288eb3be41067"
["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397"
["funcs"]="9a0ad94df22e24fe41e93a689de7d03e"
["funcs"]="20f25bd68cad369696a5b7ab8d8c543d"
["lan"]="c62e84ddd1457b71a85ad21da662b9af"
)
local author="aclist"

View file

@ -354,7 +354,7 @@ list_mods(){
base_dir=$(basename $(readlink -f $game_dir/$symlink))
size=$(du -s "$(readlink -f "$game_dir/$symlink")" | awk '{print $1}')
size=$(python3 -c "n=($size/1024) +.005; print(round(n,4))")
printf "%s$sep%s$sep%s$sep%3.3f\n" "$name" "$symlink" "$base_dir" "$size"
LC_ALL=C printf "%s$sep%s$sep%s$sep%3.3f\n" "$name" "$symlink" "$base_dir" "$size"
done | sort -k1
fi
}