From cd6ffb5913664844290f44a7ea48533caf8c459e Mon Sep 17 00:00:00 2001 From: Guillaume Chazarain Date: Mon, 3 Sep 2012 22:45:31 +0200 Subject: [PATCH] Put back code deleted in the python3 conversion --- iotop/data.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]) -- 2.11.4.GIT