Fix free-disk-space call
As the WAL file might not exist.
This commit is contained in:
parent
c04ea067c2
commit
46b86761f5
1 changed files with 1 additions and 1 deletions
|
|
@ -1771,7 +1771,7 @@ SELECT 1 FROM derivation_source_file_nars WHERE derivation_source_file_id = $1"
|
|||
(max
|
||||
(* 4096 (expt 2 20))
|
||||
(* 0.8
|
||||
(- (free-disk-space "/var/guix/db/db.sqlite-wal")
|
||||
(- (free-disk-space "/var/guix/db/db.sqlite")
|
||||
(get-wal-bytes)))))
|
||||
|
||||
(if (< (get-wal-bytes) threshold)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue