mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-08 13:29:53 +00:00
Merge pull request #826 from apernet/wip-fix-bpsconv
fix: bps conv (should be 1000 not 1024)
This commit is contained in:
commit
ee3a23fb3e
@ -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