David Rose 20 năm trước cách đây
mục cha
commit
26912f6bbb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      panda/src/pstatclient/pStatCollector.I

+ 1 - 1
panda/src/pstatclient/pStatCollector.I

@@ -249,7 +249,7 @@ add_level(float increment) {
 INLINE void PStatCollector::
 sub_level(float decrement) {
 #ifndef HAVE_THREADS
-  _client->sub_level(_index, 0, decrement);
+  _client->add_level(_index, 0, -decrement);
 #else  // HAVE_THREADS
   sub_level(_client->get_current_thread(), decrement);
 #endif  // HAVE_THREADS