This commit is contained in:
2020-06-02 17:33:02 +00:00
parent 06147627ac
commit 6d7075b044

View File

@@ -219,11 +219,12 @@ namespace AyaNova.Api.Controllers
while (dr.Read()) while (dr.Read())
{ {
long tableSize = dr.GetInt64(1); long tableSize = dr.GetInt64(1);
string tableName = dr.GetString(0);
if (tableSize > 0) if (tableSize > 0)
{ {
tableSize = tableSize / MB; tableSize = tableSize / MB;
} }
TopTables.Add(new MetricNameLongValue() { name = dr.GetString(0), value = tableSize }); TopTables.Add(new MetricNameLongValue() { name = tableName, value = tableSize });
} }
} }
ct.Database.CloseConnection(); ct.Database.CloseConnection();