aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorUbitUmarov2019-10-22 12:23:19 +0100
committerUbitUmarov2019-10-22 12:23:19 +0100
commitb98ad6c53c484aa2744c5040c9f29c475c3d4f72 (patch)
tree2ed849e6441381b48a45c87b0e2df8fe9c80a7af /OpenSim/Region/ClientStack
parentmissing file (diff)
downloadopensim-SC-b98ad6c53c484aa2744c5040c9f29c475c3d4f72.zip
opensim-SC-b98ad6c53c484aa2744c5040c9f29c475c3d4f72.tar.gz
opensim-SC-b98ad6c53c484aa2744c5040c9f29c475c3d4f72.tar.bz2
opensim-SC-b98ad6c53c484aa2744c5040c9f29c475c3d4f72.tar.xz
remove some useless NULL arguments
Diffstat (limited to '')
-rwxr-xr-xOpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs36
1 files changed, 12 insertions, 24 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
index be3c4b7..a297f54 100755
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServerCommands.cs
@@ -222,7 +222,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
222 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) 222 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene)
223 return; 223 return;
224 224
225 m_console.Output("Throttles for {0}", null, m_udpServer.Scene.Name); 225 m_console.Output("Throttles for {0}", m_udpServer.Scene.Name);
226 ConsoleDisplayList cdl = new ConsoleDisplayList(); 226 ConsoleDisplayList cdl = new ConsoleDisplayList();
227 cdl.AddRow("Adaptive throttles", m_udpServer.ThrottleRates.AdaptiveThrottlesEnabled); 227 cdl.AddRow("Adaptive throttles", m_udpServer.ThrottleRates.AdaptiveThrottlesEnabled);
228 228
@@ -238,7 +238,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
238 238
239 m_console.Output(cdl.ToString()); 239 m_console.Output(cdl.ToString());
240 240
241 m_console.Output("{0}\n", null, GetServerThrottlesReport(m_udpServer)); 241 m_console.Output("{0}\n", GetServerThrottlesReport(m_udpServer));
242 } 242 }
243 243
244 private string GetServerThrottlesReport(LLUDPServer udpServer) 244 private string GetServerThrottlesReport(LLUDPServer udpServer)
@@ -314,7 +314,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
314 { 314 {
315 MainConsole.Instance.Output( 315 MainConsole.Instance.Output(
316 "Data debug for {0} ({1}) set to {2} in {3}", 316 "Data debug for {0} ({1}) set to {2} in {3}",
317 null,
318 sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name); 317 sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name);
319 318
320 ((LLClientView)sp.ControllingClient).UDPClient.DebugDataOutLevel = level; 319 ((LLClientView)sp.ControllingClient).UDPClient.DebugDataOutLevel = level;
@@ -356,7 +355,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
356 { 355 {
357 MainConsole.Instance.Output( 356 MainConsole.Instance.Output(
358 "Throttle log level for {0} ({1}) set to {2} in {3}", 357 "Throttle log level for {0} ({1}) set to {2} in {3}",
359 null,
360 sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name); 358 sp.Name, sp.IsChildAgent ? "child" : "root", level, m_udpServer.Scene.Name);
361 359
362 ((LLClientView)sp.ControllingClient).UDPClient.ThrottleDebugLevel = level; 360 ((LLClientView)sp.ControllingClient).UDPClient.ThrottleDebugLevel = level;
@@ -403,7 +401,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
403 { 401 {
404 MainConsole.Instance.Output( 402 MainConsole.Instance.Output(
405 "Setting param {0} to {1} for {2} ({3}) in {4}", 403 "Setting param {0} to {1} for {2} ({3}) in {4}",
406 null,
407 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); 404 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name);
408 405
409 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; 406 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
@@ -427,7 +424,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
427 { 424 {
428 MainConsole.Instance.Output( 425 MainConsole.Instance.Output(
429 "Setting param {0} to {1} for {2} ({3}) in {4}", 426 "Setting param {0} to {1} for {2} ({3}) in {4}",
430 null,
431 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); 427 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name);
432 428
433 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; 429 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
@@ -449,7 +445,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
449 { 445 {
450 MainConsole.Instance.Output( 446 MainConsole.Instance.Output(
451 "Setting param {0} to {1} for {2} ({3}) in {4}", 447 "Setting param {0} to {1} for {2} ({3}) in {4}",
452 null,
453 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); 448 param, newValue, sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name);
454 449
455 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; 450 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
@@ -489,7 +484,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
489 { 484 {
490 m_console.Output( 485 m_console.Output(
491 "Status for {0} ({1}) in {2}", 486 "Status for {0} ({1}) in {2}",
492 null,
493 sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name); 487 sp.Name, sp.IsChildAgent ? "child" : "root", m_udpServer.Scene.Name);
494 488
495 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; 489 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
@@ -510,7 +504,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
510 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene) 504 if (SceneManager.Instance.CurrentScene != null && SceneManager.Instance.CurrentScene != m_udpServer.Scene)
511 return; 505 return;
512 506
513 m_console.Output("Debug settings for {0}", null, m_udpServer.Scene.Name); 507 m_console.Output("Debug settings for {0}", m_udpServer.Scene.Name);
514 ConsoleDisplayList cdl = new ConsoleDisplayList(); 508 ConsoleDisplayList cdl = new ConsoleDisplayList();
515 509
516 long maxSceneDripRate = (long)m_udpServer.Throttle.MaxDripRate; 510 long maxSceneDripRate = (long)m_udpServer.Throttle.MaxDripRate;
@@ -561,7 +555,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
561 return; 555 return;
562 } 556 }
563 557
564 m_console.Output("{0} set to {1} in {2}", null, param, rawValue, m_udpServer.Scene.Name); 558 m_console.Output("{0} set to {1} in {2}", param, rawValue, m_udpServer.Scene.Name);
565 } 559 }
566 560
567/* not in use, nothing to set/get from lludp 561/* not in use, nothing to set/get from lludp
@@ -654,7 +648,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
654 648
655 MainConsole.Instance.Output( 649 MainConsole.Instance.Output(
656 "Packet debug for {0} clients set to {1} in {2}", 650 "Packet debug for {0} clients set to {1} in {2}",
657 null,
658 (setAll ? "all" : "future"), m_udpServer.DefaultClientPacketDebugLevel, m_udpServer.Scene.Name); 651 (setAll ? "all" : "future"), m_udpServer.DefaultClientPacketDebugLevel, m_udpServer.Scene.Name);
659 652
660 if (setAll) 653 if (setAll)
@@ -663,7 +656,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
663 { 656 {
664 MainConsole.Instance.Output( 657 MainConsole.Instance.Output(
665 "Packet debug for {0} ({1}) set to {2} in {3}", 658 "Packet debug for {0} ({1}) set to {2} in {3}",
666 null,
667 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name); 659 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name);
668 660
669 sp.ControllingClient.DebugPacketLevel = newDebug; 661 sp.ControllingClient.DebugPacketLevel = newDebug;
@@ -678,7 +670,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
678 { 670 {
679 MainConsole.Instance.Output( 671 MainConsole.Instance.Output(
680 "Packet debug for {0} ({1}) set to {2} in {3}", 672 "Packet debug for {0} ({1}) set to {2} in {3}",
681 null,
682 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name); 673 sp.Name, sp.IsChildAgent ? "child" : "root", newDebug, m_udpServer.Scene.Name);
683 674
684 sp.ControllingClient.DebugPacketLevel = newDebug; 675 sp.ControllingClient.DebugPacketLevel = newDebug;
@@ -712,7 +703,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
712 { 703 {
713 MainConsole.Instance.Output( 704 MainConsole.Instance.Output(
714 "Adding packet {0} to {1} drop list for all connections in {2}", 705 "Adding packet {0} to {1} drop list for all connections in {2}",
715 null,
716 direction, packetName, m_udpServer.Scene.Name); 706 direction, packetName, m_udpServer.Scene.Name);
717 707
718 m_udpServer.Scene.ForEachScenePresence( 708 m_udpServer.Scene.ForEachScenePresence(
@@ -731,7 +721,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
731 { 721 {
732 MainConsole.Instance.Output( 722 MainConsole.Instance.Output(
733 "Removing packet {0} from {1} drop list for all connections in {2}", 723 "Removing packet {0} from {1} drop list for all connections in {2}",
734 null,
735 direction, packetName, m_udpServer.Scene.Name); 724 direction, packetName, m_udpServer.Scene.Name);
736 725
737 m_udpServer.Scene.ForEachScenePresence( 726 m_udpServer.Scene.ForEachScenePresence(
@@ -805,13 +794,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
805 return; 794 return;
806 795
807 MainConsole.Instance.Output( 796 MainConsole.Instance.Output(
808 "IN LLUDP packet processing for {0} is {1}", null, m_udpServer.Scene.Name, m_udpServer.IsRunningInbound ? "enabled" : "disabled"); 797 "IN LLUDP packet processing for {0} is {1}", m_udpServer.Scene.Name, m_udpServer.IsRunningInbound ? "enabled" : "disabled");
809 798
810 MainConsole.Instance.Output( 799 MainConsole.Instance.Output(
811 "OUT LLUDP packet processing for {0} is {1}", null, m_udpServer.Scene.Name, m_udpServer.IsRunningOutbound ? "enabled" : "disabled"); 800 "OUT LLUDP packet processing for {0} is {1}", m_udpServer.Scene.Name, m_udpServer.IsRunningOutbound ? "enabled" : "disabled");
812 801
813 MainConsole.Instance.Output( 802 MainConsole.Instance.Output(
814 "Packet debug level for new clients is {0}", null, m_udpServer.DefaultClientPacketDebugLevel); 803 "Packet debug level for new clients is {0}", m_udpServer.DefaultClientPacketDebugLevel);
815 } 804 }
816 805
817 private void HandleOqreCommand(string module, string[] args) 806 private void HandleOqreCommand(string module, string[] args)
@@ -830,25 +819,24 @@ namespace OpenSim.Region.ClientStack.LindenUDP
830 if (subCommand == "stop") 819 if (subCommand == "stop")
831 { 820 {
832 m_udpServer.OqrEngine.Stop(); 821 m_udpServer.OqrEngine.Stop();
833 MainConsole.Instance.Output("Stopped OQRE for {0}", null, m_udpServer.Scene.Name); 822 MainConsole.Instance.Output("Stopped OQRE for {0}", m_udpServer.Scene.Name);
834 } 823 }
835 else if (subCommand == "start") 824 else if (subCommand == "start")
836 { 825 {
837 m_udpServer.OqrEngine.Start(); 826 m_udpServer.OqrEngine.Start();
838 MainConsole.Instance.Output("Started OQRE for {0}", null, m_udpServer.Scene.Name); 827 MainConsole.Instance.Output("Started OQRE for {0}", m_udpServer.Scene.Name);
839 } 828 }
840 else if (subCommand == "status") 829 else if (subCommand == "status")
841 { 830 {
842 MainConsole.Instance.Output("OQRE in {0}", null, m_udpServer.Scene.Name); 831 MainConsole.Instance.Output("OQRE in {0}", m_udpServer.Scene.Name);
843 MainConsole.Instance.Output("Running: {0}", null, m_udpServer.OqrEngine.IsRunning); 832 MainConsole.Instance.Output("Running: {0}", m_udpServer.OqrEngine.IsRunning);
844 MainConsole.Instance.Output( 833 MainConsole.Instance.Output(
845 "Requests waiting: {0}", 834 "Requests waiting: {0}",
846 null,
847 m_udpServer.OqrEngine.IsRunning ? m_udpServer.OqrEngine.JobsWaiting.ToString() : "n/a"); 835 m_udpServer.OqrEngine.IsRunning ? m_udpServer.OqrEngine.JobsWaiting.ToString() : "n/a");
848 } 836 }
849 else 837 else
850 { 838 {
851 MainConsole.Instance.Output("Unrecognized OQRE subcommand {0}", null, subCommand); 839 MainConsole.Instance.Output("Unrecognized OQRE subcommand {0}", subCommand);
852 } 840 }
853 } 841 }
854 } 842 }