We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b0a8ba9 + 5d6c013 commit ec9518fCopy full SHA for ec9518f
func/db.sh
@@ -387,7 +387,7 @@ get_mysql_disk_usage() {
387
query="SELECT SUM( data_length + index_length ) / 1024 / 1024 \"Size\"
388
FROM information_schema.TABLES WHERE table_schema='$database'"
389
usage=$(mysql_query "$query" |tail -n1)
390
- if [ "$usage" == 'NULL' ] || [ "${usage:0:1}" -eq '0' ]; then
+ if [ "$usage" == '' ] || [ "$usage" == 'NULL' ] || [ "${usage:0:1}" -eq '0' ]; then
391
usage=1
392
fi
393
export LC_ALL=C
0 commit comments