Skip to content

Commit

Permalink
net/traefik: Fix build on 32 bit archs
Browse files Browse the repository at this point in the history
  • Loading branch information
ephemeralriggs committed Mar 1, 2024
1 parent 419eb42 commit b512e96
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions net/traefik/files/patch-pkg_collector_hydratation_hydration.go
@@ -0,0 +1,11 @@
--- pkg/collector/hydratation/hydration.go.orig 2024-02-12 15:25:23 UTC
+++ pkg/collector/hydratation/hydration.go
@@ -56,7 +56,7 @@ func fill(field reflect.Value) error {
case reflect.Int64:
switch field.Type() {
case reflect.TypeOf(types.Duration(time.Second)):
- setTyped(field, int64(defaultNumber*int(time.Second)))
+ setTyped(field, int64(defaultNumber)*int64(time.Second))
default:
setTyped(field, int64(defaultNumber))
}

0 comments on commit b512e96

Please sign in to comment.