aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-07-08 18:49:57 +0100
committerJustin Clark-Casey2014-08-02 00:53:06 +0100
commit73ed56f46a8faf27db52dd860d15941370ebc151 (patch)
tree21519e1e938dd2e9e7a24f6fe28b44f493107c33
parentAdd experimental "show grid size" robust console command. (diff)
downloadopensim-SC_OLD-73ed56f46a8faf27db52dd860d15941370ebc151.zip
opensim-SC_OLD-73ed56f46a8faf27db52dd860d15941370ebc151.tar.gz
opensim-SC_OLD-73ed56f46a8faf27db52dd860d15941370ebc151.tar.bz2
opensim-SC_OLD-73ed56f46a8faf27db52dd860d15941370ebc151.tar.xz
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")
-rw-r--r--OpenSim/Framework/Monitoring/StatsLogger.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Framework/Monitoring/StatsLogger.cs b/OpenSim/Framework/Monitoring/StatsLogger.cs
index f23107c..15a37aa 100644
--- a/OpenSim/Framework/Monitoring/StatsLogger.cs
+++ b/OpenSim/Framework/Monitoring/StatsLogger.cs
@@ -70,18 +70,18 @@ namespace OpenSim.Framework.Monitoring
70 { 70 {
71 ICommandConsole con = MainConsole.Instance; 71 ICommandConsole con = MainConsole.Instance;
72 72
73 if (cmd.Length != 4) 73 if (cmd.Length != 3)
74 { 74 {
75 con.Output("Usage: debug stats record start|stop"); 75 con.Output("Usage: stats record start|stop");
76 return; 76 return;
77 } 77 }
78 78
79 if (cmd[3] == "start") 79 if (cmd[2] == "start")
80 { 80 {
81 Start(); 81 Start();
82 con.OutputFormat("Now recording all stats to file every {0}ms", m_statsLogIntervalMs); 82 con.OutputFormat("Now recording all stats to file every {0}ms", m_statsLogIntervalMs);
83 } 83 }
84 else if (cmd[3] == "stop") 84 else if (cmd[2] == "stop")
85 { 85 {
86 Stop(); 86 Stop();
87 con.Output("Stopped recording stats to file."); 87 con.Output("Stopped recording stats to file.");