diff options
author | Justin Clark-Casey (justincc) | 2014-10-24 21:51:27 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-11-25 23:22:20 +0000 |
commit | 548abb3b47957bc064706859aff8ebb7333357d2 (patch) | |
tree | d6ae09cf21a5f4af5c840a756958ab90ff81d8dd /OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs | |
parent | minor: Correct letter accidentally added to copyright notice on top of Scene.... (diff) | |
download | opensim-SC_OLD-548abb3b47957bc064706859aff8ebb7333357d2.zip opensim-SC_OLD-548abb3b47957bc064706859aff8ebb7333357d2.tar.gz opensim-SC_OLD-548abb3b47957bc064706859aff8ebb7333357d2.tar.bz2 opensim-SC_OLD-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 '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs | 4 |
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 | } |