1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-14 10:57:41 +01:00

Fixed wrong limit for warning in info plugin

This commit is contained in:
squidfunk 2022-12-18 18:08:19 +01:00
parent 726e7632bf
commit 8d190ef150
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ class InfoPlugin(BasePlugin[InfoPluginConfig]):
# Print warning when file size is excessively large
print(Style.RESET_ALL)
if buffer.nbytes > 250000:
if buffer.nbytes > 1000000:
log.warning("Archive exceeds recommended maximum size of 1 MB")
# Aaaaaand done.

View File

@ -181,7 +181,7 @@ class InfoPlugin(BasePlugin[InfoPluginConfig]):
# Print warning when file size is excessively large
print(Style.RESET_ALL)
if buffer.nbytes > 250000:
if buffer.nbytes > 1000000:
log.warning("Archive exceeds recommended maximum size of 1 MB")
# Aaaaaand done.