Skip to content
This repository was archived by the owner on Aug 29, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/widgets/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ impl UpdatableWidget for DiskWidget<'_> {
.remove(&partition.device().replace("/dev/", ""))
.unwrap_or_default();

let bytes_read = io_counters.read_count();
let bytes_written = io_counters.read_count();
let bytes_read = io_counters.read_bytes();
let bytes_written = io_counters.write_bytes();
// Here we use an `unwrap_or_default` for when we are adding a new disk partition
// that is loaded when on ytop is already running.
let (bytes_read_recently, bytes_written_recently) = self
Expand Down