Explorar o código

fixed database disk space calculation

Serghey Rodin %!s(int64=13) %!d(string=hai) anos
pai
achega
f79262da21
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      func/db.sh

+ 1 - 0
func/db.sh

@@ -512,6 +512,7 @@ get_mysql_disk_usage() {
     if [ "$usage" == 'NULL' ] || [ "${usage:0:1}" -eq '0' ]; then
     if [ "$usage" == 'NULL' ] || [ "${usage:0:1}" -eq '0' ]; then
         usage=1
         usage=1
     fi
     fi
+    export LC_ALL=C
     usage=$(printf "%0.f\n"  $usage)
     usage=$(printf "%0.f\n"  $usage)
 }
 }