From eb9f54cebb34e7cfac1ce5db7701f34b8ca3701a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 3 Sep 2026 13:54:25 -0700 Subject: [PATCH] telemetry: type MinDiskBytes so a 32-bit int cannot hold it by accident (#11142) As an untyped constant it became int when passed to Infof, which overflows on linux/386 and failed the 32-bit vet job. Every field it is compared against is already uint64. Claude-Session: https://claude.ai/code/session_015rYAmF8hV9yypb9yvy4A1z --- telemetry/proto/floor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telemetry/proto/floor.go b/telemetry/proto/floor.go index 46c9b559f..8c8c9efd7 100644 --- a/telemetry/proto/floor.go +++ b/telemetry/proto/floor.go @@ -4,4 +4,4 @@ package proto // the server keeps the report: fresh `weed server` runs, CI jobs and throwaway // containers each mint their own cluster id, and they were most of the counted // clusters while holding almost none of the bytes. -const MinDiskBytes = 10 << 30 +const MinDiskBytes uint64 = 10 << 30