Seems like a magic number. You could make this more readable by breaking it up into its factors.

```python
threshold = 10 * (1024 ** 3)  # 10 Gibibytes
```