diff options
Diffstat (limited to 'OpenSim/Framework/Watchdog.cs')
-rw-r--r-- | OpenSim/Framework/Watchdog.cs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Framework/Watchdog.cs b/OpenSim/Framework/Watchdog.cs index 4847675..fa94109 100644 --- a/OpenSim/Framework/Watchdog.cs +++ b/OpenSim/Framework/Watchdog.cs | |||
@@ -48,6 +48,18 @@ namespace OpenSim.Framework | |||
48 | public class ThreadWatchdogInfo | 48 | public class ThreadWatchdogInfo |
49 | { | 49 | { |
50 | public Thread Thread { get; private set; } | 50 | public Thread Thread { get; private set; } |
51 | |||
52 | /// <summary> | ||
53 | /// Approximate tick when this thread was started. | ||
54 | /// </summary> | ||
55 | /// <remarks> | ||
56 | /// Not terribly good since this quickly wraps around. | ||
57 | /// </remarks> | ||
58 | public int FirstTick { get; private set; } | ||
59 | |||
60 | /// <summary> | ||
61 | /// First time this heartbeat update was invoked | ||
62 | /// </summary> | ||
51 | public int LastTick { get; set; } | 63 | public int LastTick { get; set; } |
52 | 64 | ||
53 | /// <summary> | 65 | /// <summary> |
@@ -64,7 +76,8 @@ namespace OpenSim.Framework | |||
64 | { | 76 | { |
65 | Thread = thread; | 77 | Thread = thread; |
66 | Timeout = timeout; | 78 | Timeout = timeout; |
67 | LastTick = Environment.TickCount & Int32.MaxValue; | 79 | FirstTick = Environment.TickCount & Int32.MaxValue; |
80 | LastTick = FirstTick; | ||
68 | } | 81 | } |
69 | } | 82 | } |
70 | 83 | ||