mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
change ODEs topcolliders code ( still bad), plus a few memory leaks
This commit is contained in:
@@ -97,9 +97,8 @@ namespace OpenSim.Region.UserStatistics
|
||||
sdr.Read();
|
||||
totalregions = Convert.ToInt32(sdr["regcnt"]);
|
||||
}
|
||||
|
||||
sdr.Close();
|
||||
sdr.Dispose();
|
||||
cmd.Dispose();
|
||||
|
||||
sql =
|
||||
"select client_version, count(*) as cnt, avg(avg_sim_fps) as simfps from stats_session_data group by client_version order by count(*) desc LIMIT 10;";
|
||||
@@ -120,7 +119,7 @@ namespace OpenSim.Region.UserStatistics
|
||||
}
|
||||
}
|
||||
sdr.Close();
|
||||
sdr.Dispose();
|
||||
cmd.Dispose();
|
||||
|
||||
if (totalregions > 1)
|
||||
{
|
||||
@@ -143,11 +142,8 @@ namespace OpenSim.Region.UserStatistics
|
||||
}
|
||||
}
|
||||
sdr.Close();
|
||||
sdr.Dispose();
|
||||
|
||||
|
||||
cmd.Dispose();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
foreach (ClientVersionData cvd in cliRegData)
|
||||
@@ -163,9 +159,6 @@ namespace OpenSim.Region.UserStatistics
|
||||
{
|
||||
regionTotals.Add(cvd.region_id, cvd.count);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
modeldata["ClientData"] = clidata;
|
||||
|
||||
@@ -227,7 +227,10 @@ TD.align_top { vertical-align: top; }
|
||||
returnstruct.avg_client_mem_use = Convert.ToSingle(sdr["sav_mem_use"]);
|
||||
|
||||
}
|
||||
sdr.Close();
|
||||
cmd.Dispose();
|
||||
}
|
||||
|
||||
return returnstruct;
|
||||
}
|
||||
|
||||
|
||||
@@ -145,8 +145,7 @@ namespace OpenSim.Region.UserStatistics
|
||||
}
|
||||
}
|
||||
sdr.Close();
|
||||
sdr.Dispose();
|
||||
|
||||
cmd.Dispose();
|
||||
}
|
||||
modeldata["SessionData"] = lstSessions;
|
||||
return modeldata;
|
||||
|
||||
Reference in New Issue
Block a user