[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 7f6e490c9c3edbd83a014cc76cdd93378828d10b
Author: Iain R. Learmonth <irl@xxxxxxxx>
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) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits