rapport add nb of warning
This commit is contained in:
parent
81dec6b8aa
commit
17dc040959
@ -61,6 +61,9 @@ generateReport()
|
|||||||
accountTotalCount=$(su -c "psql -U postgres -d minetest-auth --tuples-only -c \"SELECT COUNT(*) FROM auth\"" postgres | xargs)
|
accountTotalCount=$(su -c "psql -U postgres -d minetest-auth --tuples-only -c \"SELECT COUNT(*) FROM auth\"" postgres | xargs)
|
||||||
echo "Nombre de comptes total = $accountTotalCount"
|
echo "Nombre de comptes total = $accountTotalCount"
|
||||||
|
|
||||||
|
warningCount=$(zgrep "WARNING" /var/log/minetest/30009-mineclone2.log-${month}* | wc -l)
|
||||||
|
echo "Nombre de warning = $warningCoung"
|
||||||
|
|
||||||
mcl2_databasesSize=$(su -c "psql -U postgres --tuples-only -c \"SELECT ROUND((CAST(SUM(pg_database_size(datname)) AS decimal) / 1024 / 1024)::numeric, 2) FROM pg_database WHERE datname LIKE 'minetest%mineclone2'\"" postgres | xargs)
|
mcl2_databasesSize=$(su -c "psql -U postgres --tuples-only -c \"SELECT ROUND((CAST(SUM(pg_database_size(datname)) AS decimal) / 1024 / 1024)::numeric, 2) FROM pg_database WHERE datname LIKE 'minetest%mineclone2'\"" postgres | xargs)
|
||||||
echo "Taile des bases de données mineclone2 = $mcl2_databasesSize MB"
|
echo "Taile des bases de données mineclone2 = $mcl2_databasesSize MB"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user