Merge pull request #1254 from scop/fix/freebsd-iocounters-disk-serial

[disk][freebsd] include serial number in IOCounters
This commit is contained in:
shirou 2022-02-24 20:56:35 +09:00 committed by GitHub
commit b47e88a0c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOC
IoTime: uint64(d.Busy_time.Compute() * 1000),
Name: name,
}
ds.SerialNumber, _ = SerialNumberWithContext(ctx, name)
ret[name] = ds
}