Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Future-proof disk_io_counters on Linux. (#1665)
Kernel 5.5 added 2 more fields to /proc/diskstats, requiring another change after the one for 4.18, which recently added 4 fields. At this point in time, the meaning of the existing fields is unlikely to change, and psutil is not using any of the newer ones. By considering 18 fields and more to have the current layout, psutil will continue to work as newer kernels add more fields.
- Loading branch information