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
This commit is contained in:
Chris Lu
2026-09-03 13:54:25 -07:00
committed by GitHub
parent 830bd7ad24
commit eb9f54cebb
+1 -1
View File
@@ -4,4 +4,4 @@ package proto
// the server keeps the report: fresh `weed server` runs, CI jobs and throwaway // 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 // containers each mint their own cluster id, and they were most of the counted
// clusters while holding almost none of the bytes. // clusters while holding almost none of the bytes.
const MinDiskBytes = 10 << 30 const MinDiskBytes uint64 = 10 << 30