src/tools/disks/zfs.rs: use wtime + rtime (wait + run time)
This commit is contained in:
parent
4bf26be3bb
commit
547e3c2f6c
|
@ -30,7 +30,7 @@ pub fn zfs_pool_stats(pool: &OsStr) -> Result<Option<BlockDevStat>, Error> {
|
|||
u64::from_str_radix(s, 10).unwrap_or(0)
|
||||
}).collect();
|
||||
|
||||
let ticks = stat[4]/1_000_000; // convert to milisec
|
||||
let ticks = (stat[4] + stat[7])/1_000_000; // convert to milisec
|
||||
|
||||
let stat = BlockDevStat {
|
||||
read_sectors: stat[0]>>9,
|
||||
|
|
Loading…
Reference in New Issue