Skip to content

Commit 873f38d

Browse files
committed
Fix the cache cleanup script.
1 parent 27d409d commit 873f38d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/gpuarray-cache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def clean(max_size):
1919
os.remove(path)
2020

2121

22-
SUFFIXES = {'B': 1, 'K': 1 << 10, 'M': 1 < 20, 'G': 1 << 30, 'T': 1 << 40,
22+
SUFFIXES = {'B': 1, 'K': 1 << 10, 'M': 1 << 20, 'G': 1 << 30, 'T': 1 << 40,
2323
'P': 1 << 50, 'E': 1 << 60, 'Z': 1 << 70, 'Y': 1 << 80}
2424

2525

@@ -44,7 +44,7 @@ if __name__ == '__main__':
4444
import argparse
4545

4646
parser = argparse.ArgumentParser(description='libgpuarray cache maintenance utility')
47-
parser.add_argument('-s', '--max_size', help='Set the maximum size for pruning')
47+
parser.add_argument('-s', '--max_size', help='Set the maximum size for pruning (in bytes with suffixes: K, M, G, ...)')
4848
args = parser.parse_args()
4949

5050
clean(get_size(args.max_size))

0 commit comments

Comments
 (0)