[tor-commits] [atlas/master] map: Use existing hrBandwidth function

irl at torproject.org irl at torproject.org
Sat Jan 13 23:25:54 UTC 2018


commit 7f6e490c9c3edbd83a014cc76cdd93378828d10b
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Sat Jan 13 23:25:33 2018 +0000

    map: Use existing hrBandwidth function
---
 js/views/aggregate/map.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/views/aggregate/map.js b/js/views/aggregate/map.js
index 19b2f35..6c62277 100644
--- a/js/views/aggregate/map.js
+++ b/js/views/aggregate/map.js
@@ -101,7 +101,7 @@ define([
             text = (value*100).toFixed(3) + "%";
             break;
           case "advertised_bandwidth":
-            text = value + "KBps";
+            text = hrBandwidth(value);
             break;
           case "consensus_weight_to_bandwidth":
             if (value == 0) {





More information about the tor-commits mailing list