mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-07-06 11:19:51 +00:00
fix: stringToBps
This commit is contained in:
parent
877affec42
commit
ba47130990
@ -289,7 +289,7 @@ func stringToBps(s string) uint64 {
|
|||||||
}
|
}
|
||||||
var n uint64
|
var n uint64
|
||||||
switch m[2] {
|
switch m[2] {
|
||||||
case "K", "k":
|
case "K":
|
||||||
n = 1 << 10
|
n = 1 << 10
|
||||||
case "M":
|
case "M":
|
||||||
n = 1 << 20
|
n = 1 << 20
|
||||||
|
Loading…
x
Reference in New Issue
Block a user