]> git.proxmox.com Git - cargo.git/commit
Don't assume iowait always increases on Linux
authorAlex Crichton <alex@alexcrichton.com>
Wed, 15 Jan 2020 15:06:45 +0000 (07:06 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 15 Jan 2020 15:06:45 +0000 (07:06 -0800)
commit4c665c0ecde88c155c6b69d9ce3f5a59364fefc6
treec5df271ad2d6a4fe362afbbc166172167fec414e
parentad3dbe10e1e654fb1f032a5dd9481d7cbaa00d65
Don't assume iowait always increases on Linux

According to [documentation] looks like this value is documented as it
can decrease, so let's handle that without overflowing.

[documentation]: http://man7.org/linux/man-pages/man5/proc.5.html
src/cargo/util/cpu.rs