This commit is contained in:
Wang Sen Di
2025-11-28 10:56:15 +08:00
parent 39d5683475
commit 5cc887ff81

View File

@@ -34,10 +34,11 @@ __check_md5() {
fi fi
} }
__strong_size() { __strong_size() {
_size=$(df -m "$CACHE/$FILE_PATH_START" 2>/dev/null | awk 'NR==2 {print $2/1024}' | tr -d 'G') _raw=$(df -m "/opt/ml-px" 2>/dev/null | awk 'NR==2 {print $2/1024}')
_size=${_raw%.*}
[[ -z "$_size" ]] && _size=40 [[ -z "$_size" ]] && _size=40
[[ "$_size" -lt 40 ]] && _size=40 [[ "$_size" -lt 40 ]] && _size=40
echo "${_size}" echo "$_size"
} }
__check_process() { __check_process() {