Skip to main content

parse_diskstats

Function parse_diskstats 

Source
pub fn parse_diskstats(text: &str) -> Vec<DiskCounters>
Expand description

Every device’s cumulative counters. Field layout per the kernel’s Documentation/iostats: major minor name <stat fields>, where reads completed is stat field 1, sectors read 3, writes completed 5, sectors written 7 and io_ticks 10 (whitespace tokens 3, 5, 7, 9 and 12).