diff --git a/0001-modify-sysctl-task_delayacct-return.patch b/0001-modify-sysctl-task_delayacct-return.patch new file mode 100644 index 0000000000000000000000000000000000000000..1a9560356c02a88887984a0013d2cdec48f08f5b --- /dev/null +++ b/0001-modify-sysctl-task_delayacct-return.patch @@ -0,0 +1,25 @@ +From 8d69eee7b38960838845f3394124b91709174efe Mon Sep 17 00:00:00 2001 +From: zhangshaoning +Date: Thu, 25 Sep 2025 17:31:10 +0800 +Subject: [PATCH] modify sysctl task_delayacct return + +--- + iotop/data.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/iotop/data.py b/iotop/data.py +index 662c1e0..0738cc8 100644 +--- a/iotop/data.py ++++ b/iotop/data.py +@@ -464,6 +464,7 @@ class ProcessList(DumpableObject): + def sysctl_task_delayacct(): + try: + with open('/proc/sys/kernel/task_delayacct') as f: +- return bool(int(f.read().strip())) ++ task_delayacct = bool(int(f.read().strip())) ++ return task_delayacct + except FileNotFoundError: + return None +-- +2.18.2 + diff --git a/iotop.spec b/iotop.spec index 7236d6bec49002fc870829b9e2f01a795eaf560e..3a71c6902f10c56c3f9f2d4e9b4140839d8a1459 100644 --- a/iotop.spec +++ b/iotop.spec @@ -1,6 +1,6 @@ Name: iotop Version: 0.6 -Release: 29 +Release: 30 Summary: Simple top-like I/O monitor License: GPLv2+ URL: http://guichaz.free.fr/iotop/ @@ -31,6 +31,7 @@ Patch18: 0018-Detect-the-kernel.task_delayacct-sysctl-value.patch Patch19: 0019-Automatically-hide-the-SWAPIN-IO-columns-when-they-a.patch Patch20: 0020-Workaround-crashes-due-to-non-UTF-8-characters-in-pr.patch Patch21: 0021-data.py-get_cmdline-use-errors-replace-for-unicode-e.patch +Patch22: 0001-modify-sysctl-task_delayacct-return.patch %description iotop watches I/O usage information output by the Linux kernel (requires 2.6.20 or later) and @@ -69,6 +70,9 @@ This contains man files for the using of iotop %changelog +* Thu Sep 25 2025 zhangshaoning - 0.6-30 +- Modify sysctl task_delayacct return + * Tue Dec 17 2024 lvyy - 0.6-29 - Fix the iotop crash caused by non-UTF-8 characters