Skip to content

Commit 3eec45f

Browse files
Daniel Xufacebook-github-bot
authored andcommitted
Add proper suffix for iface RX/TX bytes/s
Summary: Looks like the render config did not have proper suffix attached. I'm not sure how it ever worked before (and I checked, it did). But this should be strictly more correct. Reviewed By: lnyng Differential Revision: D74664384 fbshipit-source-id: a82ddb23029c1ae6e14002f8fce9703cadaf0602
1 parent 246886c commit 3eec45f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

below/render/src/default_configs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,8 @@ impl HasRenderConfig for model::SingleNetModel {
757757
let rc = RenderConfigBuilder::new();
758758
match field_id {
759759
Interface => rc.title("Interface"),
760-
RxBytesPerSec => rc.title("RX Bytes/s").format(ReadableSize),
761-
TxBytesPerSec => rc.title("TX Bytes/s").format(ReadableSize),
760+
RxBytesPerSec => rc.title("RX Bytes/s").format(ReadableSize).suffix("/s"),
761+
TxBytesPerSec => rc.title("TX Bytes/s").format(ReadableSize).suffix("/s"),
762762
ThroughputPerSec => rc.title("I/O Bytes/s").format(ReadableSize),
763763
RxPacketsPerSec => rc.title("RX Pkts/s"),
764764
TxPacketsPerSec => rc.title("TX Pkts/s"),

0 commit comments

Comments
 (0)