diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs | 39 |
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 |