1
0
mirror of https://github.com/danog/ytop.git synced 2024-11-30 04:29:10 +01:00

fix disk io counters partition name

This commit is contained in:
Caleb Bassi 2020-01-23 14:31:38 -08:00
parent 2522879845
commit 5e747a89cf

View File

@ -66,7 +66,7 @@ impl UpdatableWidget for DiskWidget<'_> {
let disk_usage = disk::disk_usage(&mountpoint).unwrap();
let io_counters = io_counters_perdisk
.remove(&partition.device().replace("/dev", ""))
.remove(&partition.device().replace("/dev/", ""))
.unwrap_or_default();
let bytes_read = io_counters.read_count();