X-Git-Url: http://git.scottworley.com/nix-currently-building/blobdiff_plain/879c383cfeb56c5e57e960d5260e19d117a3e65a..refs/heads/master:/nix_currently_building.py diff --git a/nix_currently_building.py b/nix_currently_building.py index 1b507c8..afe1ee4 100755 --- a/nix_currently_building.py +++ b/nix_currently_building.py @@ -3,8 +3,7 @@ import subprocess import time -BLOCK_SIZE = 4096 -MIN_AGE = time.time() - 86400 * 7 +MIN_AGE = time.time() - 86400 * 1 def removesuffix(s, suf): # Until python 3.9 @@ -20,7 +19,7 @@ def main(): for f in files: path = os.path.join(d, f) st = os.stat(path) - if (st.st_size % BLOCK_SIZE) == 0 and st.st_mtime > MIN_AGE and truncated(path): + if st.st_mtime > MIN_AGE and truncated(path): print(d[-2:] + removesuffix(f, '.bz2'))