We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f040aa + dccf7c8 commit 17db0cdCopy full SHA for 17db0cd
1 file changed
builder/builder-next/worker/gc.go
@@ -72,6 +72,6 @@ func DefaultGCPolicy(p string, reservedSpace, maxUsedSpace, minFreeSpace int64)
72
}
73
74
func diskPercentage(dstat disk.DiskStat, percentage int64) int64 {
75
- avail := dstat.Total / percentage
+ avail := dstat.Total * percentage / 100
76
return (avail/(1<<30) + 1) * 1e9 // round up
77
0 commit comments