src/tools/disks/zfs.rs: use wtime + rtime (wait + run time)

This commit is contained in:
Dietmar Maurer 2020-05-28 11:45:34 +02:00
parent 4bf26be3bb
commit 547e3c2f6c
1 changed files with 1 additions and 1 deletions

View File

@ -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,