Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

use uppercase abbreviations for net widget #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
8 changes: 4 additions & 4 deletions src/widgets/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ impl Widget for &NetWidget<'_, '_> {
buf.set_string(
top_half.x + 1,
top_half.y + 1,
format!("Total Rx: {}", Size::Bytes(self.total_bytes_recv)),
format!("Total RX: {}", Size::Bytes(self.total_bytes_recv)),
self.colorscheme.text.modifier(Modifier::BOLD),
);

buf.set_string(
top_half.x + 1,
top_half.y + 2,
format!(
"Rx/s: {}/s",
"RX/s: {}/s",
Size::Bytes(self.bytes_recv.last().unwrap().to_owned())
),
self.colorscheme.text.modifier(Modifier::BOLD),
Expand Down Expand Up @@ -171,15 +171,15 @@ impl Widget for &NetWidget<'_, '_> {
buf.set_string(
bottom_half.x + 1,
bottom_half.y + 1,
format!("Total Tx: {}", Size::Bytes(self.total_bytes_sent)),
format!("Total TX: {}", Size::Bytes(self.total_bytes_sent)),
self.colorscheme.text.modifier(Modifier::BOLD),
);

buf.set_string(
bottom_half.x + 1,
bottom_half.y + 2,
format!(
"Tx/s: {}/s",
"TX/s: {}/s",
Size::Bytes(self.bytes_sent.last().unwrap().to_owned())
),
self.colorscheme.text.modifier(Modifier::BOLD),
Expand Down