iotop: backport some bugfix patches Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
From cfdcabc05f75fbc5680608ef9c27069aa75077f6 Mon Sep 17 00:00:00 2001
|
|
From: Paul Jaros <jaros.paul@gmail.com>
|
|
Date: Thu, 24 May 2018 18:47:00 +0800
|
|
Subject: [PATCH 10/11] Fix crash due to syntax error
|
|
|
|
Traceback (most recent call last):
|
|
File "./iotop.py", line 9, in <module>
|
|
from iotop.ui import main
|
|
File "./iotop/ui.py", line 642
|
|
else:
|
|
^
|
|
SyntaxError: invalid syntax
|
|
|
|
Reported-in: <CAEh_nc0_DXTmfu16PxmVyrCi6QQeSrpnGGhtfNu60wJYfa_6Zw@mail.gmail.com>
|
|
---
|
|
iotop/ui.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/iotop/ui.py b/iotop/ui.py
|
|
index 328dafe..40e9a40 100644
|
|
--- a/iotop/ui.py
|
|
+++ b/iotop/ui.py
|
|
@@ -528,7 +528,7 @@ were not found. Please enable CONFIG_TASKSTATS in your Linux kernel build
|
|
configuration, use iotop outside a container and or share the host's
|
|
network namespace with the container.
|
|
|
|
-Please do not file bugs on iotop about this.''', file=sys.stderr
|
|
+Please do not file bugs on iotop about this.''', file=sys.stderr)
|
|
else:
|
|
raise
|
|
|
|
--
|
|
1.8.3.1
|
|
|