Put back code deleted in the python3 conversion
authorGuillaume Chazarain <guichaz@gmail.com>
Mon, 3 Sep 2012 20:45:31 +0000 (3 22:45 +0200)
committerGuillaume Chazarain <guichaz@gmail.com>
Mon, 3 Sep 2012 20:45:31 +0000 (3 22:45 +0200)
iotop/data.py

index 8e5c70d..a4954b3 100644 (file)
@@ -353,7 +353,9 @@ class ProcessInfo(DumpableObject):
     def update_stats(self):
         stats_delta = Stats.build_all_zero()
         for tid, thread in self.threads.items():
-            if not thread.mark:
+            if thread.mark:
+                del self.threads[tid]
+            else:
                 stats_delta.accumulate(thread.stats_delta, stats_delta)
         self.threads = dict([(tid, thread) for tid, thread in
                              self.threads.items() if not thread.mark])