mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Fix for Databases size not updated.
https://forum.vestacp.com/viewtopic.php?f=10&t=13526#p57651
This commit is contained in:
parent
56cdadbe5c
commit
25e96c3216
1 changed files with 1 additions and 1 deletions
|
@ -391,7 +391,7 @@ unsuspend_pgsql_database() {
|
|||
# Get MySQL disk usage
|
||||
get_mysql_disk_usage() {
|
||||
mysql_connect $HOST
|
||||
query="SELECT SUM( data_length + index_length ) / 1024 / 1024 \"Size\"
|
||||
query="SELECT SUM( data_length + index_length ) / 1024 / 1024 \'Size\'
|
||||
FROM information_schema.TABLES WHERE table_schema='$database'"
|
||||
usage=$(mysql_query "$query" |tail -n1)
|
||||
if [ "$usage" == '' ] || [ "$usage" == 'NULL' ] || [ "${usage:0:1}" -eq '0' ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue