1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

nix-collect-garbage: Revive --max-freed

Fixes #609.
This commit is contained in:
Eelco Dolstra 2015-08-21 13:57:53 +02:00
parent 1d29db2a9f
commit eadb86f447
3 changed files with 11 additions and 18 deletions

View file

@ -2,20 +2,10 @@
#include "globals.hh"
#include "util.hh"
#include <climits>
namespace nix {
GCOptions::GCOptions()
{
action = gcDeleteDead;
ignoreLiveness = false;
maxFreed = ULLONG_MAX;
}
bool isInStore(const Path & path)
{
return isInDir(path, settings.nixStore);