Skip to content

check_disk_stats: allow to work with newer kernels#65

Open
lynxis wants to merge 1 commit intonaparuba:masterfrom
lynxis:fix-check-disk-stats
Open

check_disk_stats: allow to work with newer kernels#65
lynxis wants to merge 1 commit intonaparuba:masterfrom
lynxis:fix-check-disk-stats

Conversation

@lynxis
Copy link
Copy Markdown

@lynxis lynxis commented Nov 22, 2019

Newer kernel might export more values via /proc/diskstats,
because of the multiple assignment, this will produce
a "ValueError: too many values to unpack".
Use an index on the data instead of a huge multiple left assignment.

Signed-off-by: Alexander Couzens lynxis@fe80.eu

Newer kernel might export more values via /proc/diskstats,
because of the multiple assignment, this will produce
a "ValueError: too many values to unpack".
Use an index on the data instead of a huge multiple left assignment.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant