carlos / platform Public

Merge pull request #61 from carlosframework/worktree-tito-console-reroll

host: fix darwin build — Statfs Bsize is uint32 there
James Adam 4093755339497f0b7dcf2d77d1837e71e90a9499 parent b918b56parent 516e2a1
1 file changed, +1 −1
  • internal/host/probes.go +1 −1
diff --git a/internal/host/probes.go b/internal/host/probes.go
index 1e3bd5d64..6a64ce1c4 100644
--- a/internal/host/probes.go
+++ b/internal/host/probes.go
@@ -317,6 +317,6 @@ func readDiskFreeBytes() *int64 {
if st.Blocks == 0 {
return nil
}
- freeBytes := int64(st.Bavail) * st.Bsize
+ freeBytes := int64(st.Bavail) * int64(st.Bsize)
return &freeBytes
}