mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-06-28 07:19:58 +00:00
fix: bps conv (should be 1000 not 1024)
This commit is contained in:
parent
cccb9558c0
commit
6d6a26b399
@ -8,11 +8,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Byte = 1.0 << (10 * iota)
|
Byte = 1
|
||||||
Kilobyte
|
Kilobyte = Byte * 1000
|
||||||
Megabyte
|
Megabyte = Kilobyte * 1000
|
||||||
Gigabyte
|
Gigabyte = Megabyte * 1000
|
||||||
Terabyte
|
Terabyte = Gigabyte * 1000
|
||||||
)
|
)
|
||||||
|
|
||||||
// StringToBps converts a string to a bandwidth value in bytes per second.
|
// StringToBps converts a string to a bandwidth value in bytes per second.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user