diff --git a/server/AyaNova/Controllers/ServerMetricsController.cs b/server/AyaNova/Controllers/ServerMetricsController.cs index 1289d7bf..4be69cdb 100644 --- a/server/AyaNova/Controllers/ServerMetricsController.cs +++ b/server/AyaNova/Controllers/ServerMetricsController.cs @@ -219,11 +219,12 @@ namespace AyaNova.Api.Controllers while (dr.Read()) { long tableSize = dr.GetInt64(1); + string tableName = dr.GetString(0); if (tableSize > 0) { tableSize = tableSize / MB; } - TopTables.Add(new MetricNameLongValue() { name = dr.GetString(0), value = tableSize }); + TopTables.Add(new MetricNameLongValue() { name = tableName, value = tableSize }); } } ct.Database.CloseConnection();