From 73ed56f46a8faf27db52dd860d15941370ebc151 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 8 Jul 2014 18:49:57 +0100 Subject: 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") --- OpenSim/Framework/Monitoring/StatsLogger.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Framework') 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 { 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; } - if (cmd[3] == "start") + if (cmd[2] == "start") { Start(); con.OutputFormat("Now recording all stats to file every {0}ms", m_statsLogIntervalMs); } - else if (cmd[3] == "stop") + else if (cmd[2] == "stop") { Stop(); con.Output("Stopped recording stats to file."); -- cgit v1.1