From 5e968cb2e194a72a73ef7a3a6b538caf2bb93153 Mon Sep 17 00:00:00 2001 From: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com> Date: Fri, 16 Jan 2026 12:59:48 +0530 Subject: [PATCH] fix: Remove `data_free` from db usage calculation --- agent/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/site.py b/agent/site.py index 1790f560..579e0e60 100644 --- a/agent/site.py +++ b/agent/site.py @@ -924,7 +924,7 @@ def get_database_size(self): # only specific to mysql/mariaDB. use a different query for postgres. # or try using frappe.db.get_database_size if possible query = ( - "SELECT SUM(`data_length` + `index_length` + `data_free`)" + "SELECT SUM(`data_length` + `index_length`)" " FROM information_schema.tables" f' WHERE `table_schema` = "{self.database}"' " GROUP BY `table_schema`"