Commit 6fb8db77 authored by Max Lv's avatar Max Lv

fix typo

parent 6749afd2
...@@ -24,7 +24,7 @@ object TrafficMonitor { ...@@ -24,7 +24,7 @@ object TrafficMonitor {
TrafficStats.getUidRxBytes(uid), System.currentTimeMillis()) TrafficStats.getUidRxBytes(uid), System.currentTimeMillis())
} }
def formatTraffic(n: Long): String { def formatTraffic(n: Long): String = {
if (n <= 1024) { if (n <= 1024) {
"%d KB".formatLocal(Locale.ENGLISH, n) "%d KB".formatLocal(Locale.ENGLISH, n)
} else if (n > 1024) { } else if (n > 1024) {
...@@ -71,7 +71,7 @@ object TrafficMonitor { ...@@ -71,7 +71,7 @@ object TrafficMonitor {
formatTraffic(txRate) + "/s" formatTraffic(txRate) + "/s"
} }
def getTxRate(): String = { def getRxRate(): String = {
formatTraffic(rxRate) + "/s" formatTraffic(rxRate) + "/s"
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment