aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-07-08 18:49:57 +0100
committerJustin Clark-Casey (justincc)2014-07-08 18:49:57 +0100
commit8ae5ab809fa4efe692537500258b407c3ed152a6 (patch)
treeaeac5970529da57cfe1d9dee4cd285534739b264 /OpenSim/Framework
parentChanged GetUserInfo so that the exposure of user account details is ruled by ... (diff)
downloadopensim-SC_OLD-8ae5ab809fa4efe692537500258b407c3ed152a6.zip
opensim-SC_OLD-8ae5ab809fa4efe692537500258b407c3ed152a6.tar.gz
opensim-SC_OLD-8ae5ab809fa4efe692537500258b407c3ed152a6.tar.bz2
opensim-SC_OLD-8ae5ab809fa4efe692537500258b407c3ed152a6.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")
Diffstat (limited to 'OpenSim/Framework')
-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.");