diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs index 325b04a..a1a0395 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs | |||
@@ -158,6 +158,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
158 | m_console.Commands.AddCommand( | 158 | m_console.Commands.AddCommand( |
159 | "Debug", | 159 | "Debug", |
160 | false, | 160 | false, |
161 | "debug lludp get", | ||
162 | "debug lludp get", | ||
163 | "Get debug parameters for the server.", | ||
164 | "scene-throttle-max is the current max cumulative kbps provided for this scene to clients", | ||
165 | HandleGetCommand); | ||
166 | |||
167 | m_console.Commands.AddCommand( | ||
168 | "Debug", | ||
169 | false, | ||
161 | "debug lludp set", | 170 | "debug lludp set", |
162 | "debug lludp set <param> <value>", | 171 | "debug lludp set <param> <value>", |
163 | "Set a parameter for the server.", | 172 | "Set a parameter for the server.", |
@@ -434,6 +443,22 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
434 | }); | 443 | }); |
435 | } | 444 | } |
436 | 445 | ||
446 | private void HandleGetCommand(string module, string[] args) | ||
447 | { | ||
448 | if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) | ||
449 | return; | ||
450 | |||
451 | m_console.OutputFormat("Debug settings for {0}", m_udpServer.Scene.Name); | ||
452 | ConsoleDisplayList cdl = new ConsoleDisplayList(); | ||
453 | |||
454 | long maxSceneDripRate = m_udpServer.Throttle.MaxDripRate; | ||
455 | cdl.AddRow( | ||
456 | "scene-throttle-max", | ||
457 | maxSceneDripRate != 0 ? string.Format("{0} kbps", maxSceneDripRate * 8 / 1000) : "unset"); | ||
458 | |||
459 | m_console.Output(cdl.ToString()); | ||
460 | } | ||
461 | |||
437 | private void HandleSetCommand(string module, string[] args) | 462 | private void HandleSetCommand(string module, string[] args) |
438 | { | 463 | { |
439 | if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) | 464 | if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) |