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:
parent
2522879845
commit
5e747a89cf
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user