From fe25a0fa624bf2dafff2f5ea9f45ed9b08c7eee2 Mon Sep 17 00:00:00 2001 From: bushing Date: Fri, 9 Mar 2007 19:42:42 +0000 Subject: [PATCH] Added a lil bit of code to the whole ping thing git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1043 52acb1d6-8a22-11de-b505-999d5b087335 --- libsecondlife-cs/NetworkManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/libsecondlife-cs/NetworkManager.cs b/libsecondlife-cs/NetworkManager.cs index b475156a..b19e468e 100644 --- a/libsecondlife-cs/NetworkManager.cs +++ b/libsecondlife-cs/NetworkManager.cs @@ -1052,6 +1052,7 @@ namespace libsecondlife String retval = "Pong: "+(Environment.TickCount-simulator.LastPingSent); if (pong.PingID.PingID != (simulator.LastPingID+1)) retval += " (gap of "+(pong.PingID.PingID - simulator.LastPingID+1)+")"; + else simulator.LastLag=Environment.TickCount-simulator.LastPingSent; Client.Log(retval, Helpers.LogLevel.Info); }