Projects
openEuler:20.03:LTS:SP3
iotop
_service:tar_scm_kernel_repo:0003-Only-split-pr...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:0003-Only-split-proc-status-lines-on-the-character.patch of Package iotop
From 961bd1671afbf501251119cdd7c02ce8cdaa7446 Mon Sep 17 00:00:00 2001 From: Paul Wise <pabs3@bonedaddy.net> Date: Thu, 28 Jul 2016 13:25:54 +0800 Subject: [PATCH 03/11] Only split /proc/*/status lines on the : character. Apparently vserver kernels have some lines that don't appear to have the tab character so iotop crashes. The tab character will be stripped by the next code line. Closes: https://bugs.gentoo.org/show_bug.cgi?id=458556 --- iotop/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iotop/data.py b/iotop/data.py index 25b659e..bf2e7b5 100644 --- a/iotop/data.py +++ b/iotop/data.py @@ -193,7 +193,7 @@ def parse_proc_pid_status(pid): result_dict = {} try: for line in open('/proc/%d/status' % pid): - key, value = line.split(':\t', 1) + key, value = line.split(':', 1) result_dict[key] = value.strip() except IOError: pass # No such process -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.