diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-16 12:08:03 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-16 12:08:03 +0200 |
commit | 029711d94d684cb92985666f91ecbd0889218e76 (patch) | |
tree | ae18a0f6b4ba0980c34f3303d2dfd44645854695 | |
parent | e4bdc5932c12168720b45e5fe0abb14e8a38821f (diff) | |
download | psutil-029711d94d684cb92985666f91ecbd0889218e76.tar.gz |
small refactoring
-rw-r--r-- | psutil/_pslinux.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py index eb7d1126..cf32bbd5 100644 --- a/psutil/_pslinux.py +++ b/psutil/_pslinux.py @@ -1070,9 +1070,9 @@ def disk_io_counters(): raise ValueError("not sure how to interpret line %r" % line) if name in partitions: - sector_size = get_sector_size(name) - rbytes = rbytes * sector_size - wbytes = wbytes * sector_size + ssize = get_sector_size(name) + rbytes *= ssize + wbytes *= ssize retdict[name] = (reads, writes, rbytes, wbytes, rtime, wtime, reads_merged, writes_merged, busy_time) return retdict |