Browse Source

threaded pstats fix

David Rose 18 years ago
parent
commit
0c2b6e3164
1 changed files with 4 additions and 1 deletions
  1. 4 1
      panda/src/pstatclient/pStatClient.I

+ 4 - 1
panda/src/pstatclient/pStatClient.I

@@ -156,7 +156,10 @@ get_thread_object(int index) const {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE double PStatClient::
 INLINE double PStatClient::
 get_real_time() const {
 get_real_time() const {
-  return get_impl()->get_real_time();
+  if (has_impl()) {
+    return _impl->get_real_time();
+  }
+  return 0.0f;
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////