Set threshold to 1MiB instead of 0.97MiB

Reference: https://en.wikipedia.org/wiki/Mebibyte#Definition
This commit is contained in:
Joar Wandborg 2017-11-03 14:37:01 +01:00
parent ff5786d61b
commit f128ed5b1f

View File

@ -104,7 +104,7 @@ def register(app, uri, file_or_directory, pattern,
if isinstance(stream_large_files, int):
threshold = stream_large_files
else:
threshold = 1024 * 1000
threshold = 1024 * 1024
if not stats:
stats = await stat(file_path)