Change the word order of some debug lludp settings for readability

On server, scene-throttle-max becomes max-scene-throttle and likewise max-new-client-throttle
On clients, throttle-max becomes max
mb-throttle-test
Justin Clark-Casey (justincc) 2014-10-21 02:17:38 +01:00
parent 44dc58cc7f
commit 61d6bd78b3
1 changed files with 15 additions and 15 deletions

View File

@ -143,7 +143,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
"debug lludp throttles get [<avatar-first-name> <avatar-last-name>]", "debug lludp throttles get [<avatar-first-name> <avatar-last-name>]",
"Return debug settings for throttles.", "Return debug settings for throttles.",
"adaptive - true/false, controls adaptive throttle setting.\n" "adaptive - true/false, controls adaptive throttle setting.\n"
+ "throttle-max - the max kbps throttle allowed for the specified existing clients. Use 'debug lludp get new-client-throttle-max' to see the setting for new clients.\n", + "max - the max kbps throttle allowed for the specified existing clients. Use 'debug lludp get new-client-throttle-max' to see the setting for new clients.\n",
HandleThrottleGetCommand); HandleThrottleGetCommand);
m_console.Commands.AddCommand( m_console.Commands.AddCommand(
@ -153,7 +153,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
"debug lludp throttles set <param> <value> [<avatar-first-name> <avatar-last-name>]", "debug lludp throttles set <param> <value> [<avatar-first-name> <avatar-last-name>]",
"Set a throttle parameter for the given client.", "Set a throttle parameter for the given client.",
"adaptive - true/false, controls adaptive throttle setting.\n" "adaptive - true/false, controls adaptive throttle setting.\n"
+ "throttle-max - the max kbps throttle allowed for the specified existing clients. Use 'debug lludp set new-client-throttle-max' to change the settings for new clients.\n", + "max - the max kbps throttle allowed for the specified existing clients. Use 'debug lludp set new-client-throttle-max' to change the settings for new clients.\n",
HandleThrottleSetCommand); HandleThrottleSetCommand);
m_console.Commands.AddCommand( m_console.Commands.AddCommand(
@ -162,8 +162,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
"debug lludp get", "debug lludp get",
"debug lludp get", "debug lludp get",
"Get debug parameters for the server.", "Get debug parameters for the server.",
"scene-throttle-max - the current max cumulative kbps provided for this scene to clients.\n" "max-scene-throttle - the current max cumulative kbps provided for this scene to clients.\n"
+ "new-client-throttle-max - the max kbps throttle allowed to new clients. Use 'debug lludp throttles set' to see the settings for existing clients.", + "max-new-client-throttle - the max kbps throttle allowed to new clients. Use 'debug lludp throttles get max' to see the settings for existing clients.",
HandleGetCommand); HandleGetCommand);
m_console.Commands.AddCommand( m_console.Commands.AddCommand(
@ -172,8 +172,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
"debug lludp set", "debug lludp set",
"debug lludp set <param> <value>", "debug lludp set <param> <value>",
"Set a parameter for the server.", "Set a parameter for the server.",
"scene-throttle-max - the current max cumulative kbps provided for this scene to clients.\n" "max-scene-throttle - the current max cumulative kbps provided for this scene to clients.\n"
+ "new-client-throttle-max - the max kbps throttle allowed to each new client. Use 'debug lludp throttles set' to set for existing clients.", + "max-new-client-throttle - the max kbps throttle allowed to each new client. Use 'debug lludp throttles set max' to set for existing clients.",
HandleSetCommand); HandleSetCommand);
m_console.Commands.AddCommand( m_console.Commands.AddCommand(
@ -378,7 +378,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
} }
}); });
} }
else if (param == "throttle-max") else if (param == "max")
{ {
int newValue; int newValue;
if (!ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, rawValue, out newValue)) if (!ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, rawValue, out newValue))
@ -436,8 +436,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
ConsoleDisplayList cdl = new ConsoleDisplayList(); ConsoleDisplayList cdl = new ConsoleDisplayList();
cdl.AddRow("Adaptive throttle", udpClient.FlowThrottle.AdaptiveEnabled); cdl.AddRow("adaptive", udpClient.FlowThrottle.AdaptiveEnabled);
cdl.AddRow("Max throttle", string.Format("{0} kbps", udpClient.FlowThrottle.MaxDripRate * 8 / 1000)); cdl.AddRow("max", string.Format("{0} kbps", udpClient.FlowThrottle.MaxDripRate * 8 / 1000));
m_console.Output(cdl.ToString()); m_console.Output(cdl.ToString());
} }
@ -454,12 +454,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
long maxSceneDripRate = m_udpServer.Throttle.MaxDripRate; long maxSceneDripRate = m_udpServer.Throttle.MaxDripRate;
cdl.AddRow( cdl.AddRow(
"scene-throttle-max", "max-scene-throttle",
maxSceneDripRate != 0 ? string.Format("{0} kbps", maxSceneDripRate * 8 / 1000) : "unset"); maxSceneDripRate != 0 ? string.Format("{0} kbps", maxSceneDripRate * 8 / 1000) : "unset");
int maxClientDripRate = m_udpServer.ThrottleRates.Total; int maxClientDripRate = m_udpServer.ThrottleRates.Total;
cdl.AddRow( cdl.AddRow(
"new-client-throttle-max", "max-new-client-throttle",
maxClientDripRate != 0 ? string.Format("{0} kbps", maxClientDripRate * 8 / 1000) : "unset"); maxClientDripRate != 0 ? string.Format("{0} kbps", maxClientDripRate * 8 / 1000) : "unset");
m_console.Output(cdl.ToString()); m_console.Output(cdl.ToString());
@ -481,14 +481,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
int newValue; int newValue;
if (param == "scene-throttle-max") if (param == "max-scene-throttle")
{ {
if (!ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, rawValue, out newValue)) if (!ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, rawValue, out newValue))
return; return;
m_udpServer.Throttle.RequestedDripRate = newValue * 1000 / 8; m_udpServer.Throttle.RequestedDripRate = newValue * 1000 / 8;
} }
else if (param == "new-client-throttle-max") else if (param == "max-new-client-throttle")
{ {
if (!ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, rawValue, out newValue)) if (!ConsoleUtil.TryParseConsoleInt(MainConsole.Instance, rawValue, out newValue))
return; return;