瀏覽代碼

fixed database disk space calculation

Serghey Rodin 13 年之前
父節點
當前提交
f79262da21
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)
 }
 }