Fix issue with running "stats record start|stop" console command
In commit e6080a38
(Wed Mar 19 00:29:36 2014) I renamed this from "debug stats record start|stop"
Unfortunately, I didn't do this fully so before this commit "stats record start|stop" will report a usage failure with the old debug text.
Unfortunately this is in the 0.8 release. The workaround is to repeat the last command twice (e.g. "stats record start start")
bullet-2.82
parent
ba233008cd
commit
8ae5ab809f
|
@ -70,18 +70,18 @@ namespace OpenSim.Framework.Monitoring
|
||||||
{
|
{
|
||||||
ICommandConsole con = MainConsole.Instance;
|
ICommandConsole con = MainConsole.Instance;
|
||||||
|
|
||||||
if (cmd.Length != 4)
|
if (cmd.Length != 3)
|
||||||
{
|
{
|
||||||
con.Output("Usage: debug stats record start|stop");
|
con.Output("Usage: stats record start|stop");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmd[3] == "start")
|
if (cmd[2] == "start")
|
||||||
{
|
{
|
||||||
Start();
|
Start();
|
||||||
con.OutputFormat("Now recording all stats to file every {0}ms", m_statsLogIntervalMs);
|
con.OutputFormat("Now recording all stats to file every {0}ms", m_statsLogIntervalMs);
|
||||||
}
|
}
|
||||||
else if (cmd[3] == "stop")
|
else if (cmd[2] == "stop")
|
||||||
{
|
{
|
||||||
Stop();
|
Stop();
|
||||||
con.Output("Stopped recording stats to file.");
|
con.Output("Stopped recording stats to file.");
|
||||||
|
|
Loading…
Reference in New Issue