mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 07:10:27 +08:00
删除不需要的代码
This commit is contained in:
@@ -138,7 +138,7 @@ window.teaweb = {
|
||||
formatBits: function (bits) {
|
||||
bits = Math.ceil(bits);
|
||||
if (bits < Math.pow(1024, 1)) {
|
||||
return bits + "Bps";
|
||||
return bits + "bps";
|
||||
}
|
||||
if (bits < Math.pow(1024, 2)) {
|
||||
return (Math.round(bits * 10000 / Math.pow(1024, 1)) / 10000) + "Kbps";
|
||||
@@ -230,7 +230,7 @@ window.teaweb = {
|
||||
let axis = this.bytesAxis(stats, countFunc)
|
||||
let unit = axis.unit
|
||||
if (unit == "B") {
|
||||
unit = "Bps"
|
||||
unit = "bps"
|
||||
} else {
|
||||
unit += "bps"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user