Skip to content

Commit

Permalink
Merge pull request #408 from spegel-org/fix/byterate
Browse files Browse the repository at this point in the history
Fix int overflow for ARM builds
  • Loading branch information
phillebaba authored Apr 1, 2024
2 parents 002544a + 2858e24 commit 962dcb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pkg/throttle/byterate.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

var unmarshalRegex = regexp.MustCompile(`^(\d+)\s?([KMGT]?Bps)$`)

type Byterate int
type Byterate int64

const (
Bps Byterate = 1
Expand Down

0 comments on commit 962dcb7

Please sign in to comment.