From: Guillaume Chazarain Date: Mon, 3 Sep 2012 20:45:31 +0000 (+0200) Subject: Put back code deleted in the python3 conversion X-Git-Tag: iotop-0.6~27 X-Git-Url: https://repo.or.cz/w/iotop.git/commitdiff_plain/cd6ffb5913664844290f44a7ea48533caf8c459e Put back code deleted in the python3 conversion --- diff --git a/iotop/data.py b/iotop/data.py index 8e5c70d..a4954b3 100644 --- a/iotop/data.py +++ b/iotop/data.py @@ -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])