Skip to content

Commit fb0d07f

Browse files
authored
Merge pull request #376 from tayloraswift/raise-disk-limit
raise guaranteed disk space to 6GB
2 parents 8995674 + cceddcc commit fb0d07f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/UnidocClient/Unidoc.Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ extension Unidoc.Client<HTTP.Client2>
138138
{
139139
// Ensure the cache directory exists, solely for checking free space.
140140
try cache.directory.create()
141-
// If there is less than 2GB of free space on the current file system, and we
141+
// If there is less than 6GB of free space on the current file system, and we
142142
// are using a manually-managed SwiftPM cache, we should clear it.
143143
let stats:FileSystemStats = try .containing(path: cache)
144144
let space:UInt = stats.blocksFreeForUnprivileged * stats.blockSize
145145

146146
print("Free space available: \(space / 1_000_000) MB")
147147

148-
if space < 2_000_000_000
148+
if space < 6_000_000_000
149149
{
150150
try cache.directory.remove()
151151
}

0 commit comments

Comments
 (0)