Skip to content

Commit

Permalink
fix(tgnms): utilization overlays math/typos
Browse files Browse the repository at this point in the history
Summary:
* Mbps should use 1000 not 1024 as divisor
* There was a typo of 2024 instead of 1024 (which should really be 1000)

Reviewed By: tommyhuynh

Differential Revision: D33931567

fbshipit-source-id: c997ba93660d2c30233884755070e22813657068
  • Loading branch information
aclave1 authored and facebook-github-bot committed Feb 9, 2022
1 parent 0af6150 commit 325c465
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ export const LINK_METRIC_OVERLAYS: Overlays = {
if (MB == null || isNaN(MB)) {
return 0;
}
return (MB * 8) / 1024 / 2024;
return (MB * 8) / 1000 / 1000;
},
formatText: (_link, value: number) => {
if (value == null || isNaN(value) || value < 0) {
Expand Down

0 comments on commit 325c465

Please sign in to comment.