aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-10-24 21:51:27 +0100
committerJustin Clark-Casey (justincc)2014-11-25 23:22:20 +0000
commit548abb3b47957bc064706859aff8ebb7333357d2 (patch)
treed6ae09cf21a5f4af5c840a756958ab90ff81d8dd /OpenSim/Region
parentminor: Correct letter accidentally added to copyright notice on top of Scene.... (diff)
downloadopensim-SC-548abb3b47957bc064706859aff8ebb7333357d2.zip
opensim-SC-548abb3b47957bc064706859aff8ebb7333357d2.tar.gz
opensim-SC-548abb3b47957bc064706859aff8ebb7333357d2.tar.bz2
opensim-SC-548abb3b47957bc064706859aff8ebb7333357d2.tar.xz
minor: In "show client stats" command, properly handle the case where a client has made no AgentUpdate requests (as is the case with agents that have only even been child) rather than throwing an exception
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs b/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs
index cc6a1e8..f6772a5 100644
--- a/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs
+++ b/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs
@@ -603,7 +603,9 @@ namespace OpenSim.Region.OptionalModules.UDP.Linden
603 string.Format( 603 string.Format(
604 "{0} ({1:0.00}%)", 604 "{0} ({1:0.00}%)",
605 llClient.TotalAgentUpdates, 605 llClient.TotalAgentUpdates,
606 (float)cinfo.SyncRequests["AgentUpdate"] / llClient.TotalAgentUpdates * 100)); 606 cinfo.SyncRequests.ContainsKey("AgentUpdate")
607 ? (float)cinfo.SyncRequests["AgentUpdate"] / llClient.TotalAgentUpdates * 100
608 : 0));
607 } 609 }
608 }); 610 });
609 } 611 }