199af3
diff -up iotop-0.6/iotop/data.py.delayacctmsg iotop-0.6/iotop/data.py
199af3
--- iotop-0.6/iotop/data.py.delayacctmsg	2022-02-15 21:52:27.206378348 +0100
199af3
+++ iotop-0.6/iotop/data.py	2022-02-15 21:52:27.208378321 +0100
199af3
@@ -32,7 +32,6 @@ import time
199af3
 # Check for requirements:
199af3
 #   o Linux >= 2.6.20 with I/O accounting and VM event counters
199af3
 #
199af3
-
199af3
 ioaccounting = os.path.exists('/proc/self/io')
199af3
 
199af3
 try:
199af3
@@ -77,7 +76,7 @@ class Stats(DumpableObject):
199af3
         ('cancelled_write_bytes', 264)
199af3
     ]
199af3
 
199af3
-    has_blkio_delay_total = False
199af3
+    has_blkio_delay_total = None
199af3
 
199af3
     def __init__(self, task_stats_buffer):
199af3
         sd = self.__dict__
199af3
@@ -88,7 +87,7 @@ class Stats(DumpableObject):
199af3
         # This is a heuristic to detect if CONFIG_TASK_DELAY_ACCT is enabled in
199af3
         # the kernel.
199af3
         if not Stats.has_blkio_delay_total:
199af3
-            Stats.has_blkio_delay_total = self.blkio_delay_total != 0
199af3
+            Stats.has_blkio_delay_total = sysctl_task_delayacct()
199af3
 
199af3
     def accumulate(self, other_stats, destination, coeff=1):
199af3
         """Update destination from operator(self, other_stats)"""
199af3
diff -up iotop-0.6/iotop/ui.py.delayacctmsg iotop-0.6/iotop/ui.py
199af3
--- iotop-0.6/iotop/ui.py.delayacctmsg	2022-02-15 21:52:27.208378321 +0100
199af3
+++ iotop-0.6/iotop/ui.py	2022-02-15 21:52:54.607013860 +0100
199af3
@@ -489,7 +489,7 @@ class IOTopUI(object):
199af3
                 title = title[:remaining_cols]
199af3
                 remaining_cols -= len(title)
199af3
                 self.win.addstr(title, attr)
199af3
-            if self.has_swapin_io:
199af3
+            if self.has_swapin_io is not False:
199af3
                 status_msg = None
199af3
             else:
199af3
                 status_msg = ('CONFIG_TASK_DELAY_ACCT '