Skip to content

Commit

Permalink
Refactor formatDataRateIEC function to handle negative precision values
Browse files Browse the repository at this point in the history
  • Loading branch information
arloor committed Oct 24, 2024
1 parent 0e2cea2 commit 5ea5a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust_http_proxy/html/net.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body style="margin: 0;height:100%;">
<div id="main" style="width: 100%;height: 100vh;"></div>
<script type="text/javascript" >
function formatDataRateIEC(num, precision = -1) {
function formatDataRateIEC(num, precision = -1) {
if (num <= 0) {
value = '0b/s';
} else {
Expand Down

0 comments on commit 5ea5a8b

Please sign in to comment.