aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-10-21 01:48:59 +0100
committerJustin Clark-Casey (justincc)2014-11-25 23:22:19 +0000
commit68d0c4d37bb4c550986029f42a6e3a8c6cca5037 (patch)
tree82f2c479cebe36a004e40cc85d26d023791e97f4 /OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
parentAdd some more llGiveInventory() regression tests (diff)
downloadopensim-SC-68d0c4d37bb4c550986029f42a6e3a8c6cca5037.zip
opensim-SC-68d0c4d37bb4c550986029f42a6e3a8c6cca5037.tar.gz
opensim-SC-68d0c4d37bb4c550986029f42a6e3a8c6cca5037.tar.bz2
opensim-SC-68d0c4d37bb4c550986029f42a6e3a8c6cca5037.tar.xz
Add "debug lludp get" command which currently just shows scene-throttle-max to mirror "debug lludp set"
Information is also available in "show server throttles" but that's more for non-debug info rather than attempting to get and set parameters on the fly for debug purposes.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs25
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)