aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-10-06 22:18:54 +0100
committerJustin Clark-Casey (justincc)2014-11-25 23:18:39 +0000
commita5eabdade3498d41d600043fe15d62905bec24be (patch)
treec6507c57ffc38b092852bec09a80fc7de24d75b4 /OpenSim/Region/OptionalModules
parentAdd "show server throttles" command for showing server specific information a... (diff)
downloadopensim-SC_OLD-a5eabdade3498d41d600043fe15d62905bec24be.zip
opensim-SC_OLD-a5eabdade3498d41d600043fe15d62905bec24be.tar.gz
opensim-SC_OLD-a5eabdade3498d41d600043fe15d62905bec24be.tar.bz2
opensim-SC_OLD-a5eabdade3498d41d600043fe15d62905bec24be.tar.xz
Move information about "server agent rate" throttles into "show server throttles" command rather than "show throttles"
THis allows us to see the rates when no client is connected to the region.
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r--OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs39
1 files changed, 0 insertions, 39 deletions
diff --git a/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs b/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs
index 2ef3c4c..d471062 100644
--- a/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs
+++ b/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs
@@ -513,8 +513,6 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden
513 513
514 report.AppendLine(); 514 report.AppendLine();
515 515
516 bool firstClient = true;
517
518 lock (m_scenes) 516 lock (m_scenes)
519 { 517 {
520 foreach (Scene scene in m_scenes.Values) 518 foreach (Scene scene in m_scenes.Values)
@@ -526,12 +524,6 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden
526 { 524 {
527 LLClientView llClient = client as LLClientView; 525 LLClientView llClient = client as LLClientView;
528 526
529 if (firstClient)
530 {
531 report.AppendLine(GetServerThrottlesReport(llClient.UDPServer));
532 firstClient = false;
533 }
534
535 bool isChild = client.SceneAgent.IsChildAgent; 527 bool isChild = client.SceneAgent.IsChildAgent;
536 if (isChild && !showChildren) 528 if (isChild && !showChildren)
537 return; 529 return;
@@ -569,37 +561,6 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden
569 561
570 return report.ToString(); 562 return report.ToString();
571 } 563 }
572
573 protected string GetServerThrottlesReport(LLUDPServer udpServer)
574 {
575 StringBuilder report = new StringBuilder();
576
577 int columnPadding = 2;
578 int maxNameLength = 18;
579 int maxRegionNameLength = 14;
580 int maxTypeLength = 4;
581
582 string name = "SERVER AGENT RATES";
583
584 report.Append(GetColumnEntry(name, maxNameLength, columnPadding));
585 report.Append(GetColumnEntry("-", maxRegionNameLength, columnPadding));
586 report.Append(GetColumnEntry("-", maxTypeLength, columnPadding));
587
588 ThrottleRates throttleRates = udpServer.ThrottleRates;
589 report.AppendFormat(
590 "{0,8} {1,7} {2,8} {3,7} {4,7} {5,7} {6,7} {7,9} {8,7}",
591 "-",
592 (throttleRates.Total * 8) / 1000,
593 (throttleRates.Resend * 8) / 1000,
594 (throttleRates.Land * 8) / 1000,
595 (throttleRates.Wind * 8) / 1000,
596 (throttleRates.Cloud * 8) / 1000,
597 (throttleRates.Task * 8) / 1000,
598 (throttleRates.Texture * 8) / 1000,
599 (throttleRates.Asset * 8) / 1000);
600
601 return report.ToString();
602 }
603 564
604 /// <summary> 565 /// <summary>
605 /// Show client stats data 566 /// Show client stats data