Fix dynamic traffic stat in profile selector

Fix #495
This commit is contained in:
Mygod
2015-12-29 20:27:30 +08:00
parent 5ddd8a1686
commit f9667d767e
6 changed files with 26 additions and 51 deletions
@@ -80,29 +80,5 @@ object TrafficMonitor {
rxLast = 0
dirty = true
}
def getTxTotal(): String = {
formatTraffic(txTotal)
}
def getRxTotal(): String = {
formatTraffic(rxTotal)
}
def getTotal(): String = {
formatTraffic(txTotal + rxTotal)
}
def getTxRate(): String = {
formatTraffic(txRate)
}
def getRxRate(): String = {
formatTraffic(rxRate)
}
def getRate(): String = {
formatTraffic(txRate + rxRate)
}
}