Skip to content

Commit

Permalink
give CREDIT
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Sep 15, 2014
1 parent 39c6023 commit 4d70bde
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,9 @@ I: 492

N: Jeff Tang
W: https://github.com/mrjefftang
I: 340
I: 340

N: Yaolong Huang
E: [email protected]
W: http://airekans.github.io/
I: 530
5 changes: 4 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ Bug tracker at https://github.com/giampaolo/psutil/issues
connections() methods can raise OSError(ESRCH) instead of NoSuchProcess.
- #504: [Linux]: can't build RPM packages via setup.py
- #506: [Linux]: python 2.4 support was broken.
- #522: [Linux]: Process.cpu_affinity() might return EINVAL. (patch by David Daeschler)
- #522: [Linux]: Process.cpu_affinity() might return EINVAL. (patch by David
Daeschler)
- #530: [Linux]: psutil.disk_io_counters() may crash on old Linux distros
(< 2.6.5) (patch by Yaolong Huang)
- #533: [Linux]: Process.memory_maps() may raise TypeError on old Linux distros.


Expand Down
3 changes: 2 additions & 1 deletion psutil/_pslinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,8 @@ def disk_io_counters():
if len(fields) > 7:
_, _, name, reads, _, rbytes, rtime, writes, _, wbytes, wtime = \
fields[:11]
else: # from kernel 2.6 to 2.6.25
else:
# from kernel 2.6.0 to 2.6.25
_, _, name, reads, rbytes, writes, wbytes = fields
rtime, wtime = 0, 0
if name in partitions:
Expand Down

0 comments on commit 4d70bde

Please sign in to comment.