commit ba835599f7cfafae78663878217a1696d32b2500
Author: Nathan Freitas <nathan(a)freitas.net>
Date: Mon Jan 25 15:45:29 2016 -0500
this should be kbps in fact
---
src/org/torproject/android/service/TorService.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java
index 73f3f95..47add0e 100644
--- a/src/org/torproject/android/service/TorService.java
+++ b/src/org/torproject/android/service/TorService.java
@@ -1333,13 +1333,14 @@ public class TorService extends Service implements TorServiceConstants, OrbotCon
private String formatCount(long count) {
// Converts the supplied argument into a string.
+
// Under 2Mb, returns "xxx.xKb"
// Over 2Mb, returns "xxx.xxMb"
if (mNumberFormat != null)
if (count < 1e6)
- return mNumberFormat.format(Math.round((float)((int)(count*10/1024))/10)) + "Kbps";
+ return mNumberFormat.format(Math.round((float)((int)(count*10/1024))/10)) + "kbps";
else
- return mNumberFormat.format(Math.round((float)((int)(count*100/1024/1024))/100)) + "Mbps";
+ return mNumberFormat.format(Math.round((float)((int)(count*100/1024/1024))/100)) + "mbps";
else
return "";