]> git.pld-linux.org Git - packages/python-psutil.git/blob - python-psutil-linux.patch
- updated to 5.6.7
[packages/python-psutil.git] / python-psutil-linux.patch
1 --- psutil-release-5.6.7/psutil/_pslinux.py.orig        2019-11-26 08:25:07.000000000 +0100
2 +++ psutil-release-5.6.7/psutil/_pslinux.py     2019-12-30 19:25:22.441270337 +0100
3 @@ -1107,6 +1107,7 @@
4                  with open_text(os.path.join(root, 'stat')) as f:
5                      fields = f.read().strip().split()
6                  name = os.path.basename(root)
7 +                del fields[11:] # newer kernels give more values
8                  (reads, reads_merged, rbytes, rtime, writes, writes_merged,
9                      wbytes, wtime, _, busy_time, _) = map(int, fields)
10                  yield (name, reads, writes, rbytes, wbytes, rtime,
This page took 0.092611 seconds and 3 git commands to generate.