diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e0d4a15..662fa032 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - [#396](https://github.com/spegel-org/spegel/pull/396) Fix missing metrics when registering. +- [#408](https://github.com/spegel-org/spegel/pull/408) Fix int overflow for ARM builds. ### Security diff --git a/pkg/throttle/byterate.go b/pkg/throttle/byterate.go index ebaa9662..37abb938 100644 --- a/pkg/throttle/byterate.go +++ b/pkg/throttle/byterate.go @@ -8,7 +8,7 @@ import ( var unmarshalRegex = regexp.MustCompile(`^(\d+)\s?([KMGT]?Bps)$`) -type Byterate int +type Byterate int64 const ( Bps Byterate = 1