From 8d190ef15051bb60c4fa1f892fbe7f47c4ccba5a Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 18 Dec 2022 18:08:19 +0100 Subject: [PATCH] Fixed wrong limit for warning in info plugin --- material/plugins/info/plugin.py | 2 +- src/plugins/info/plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/material/plugins/info/plugin.py b/material/plugins/info/plugin.py index 6b093182d..21266bac8 100644 --- a/material/plugins/info/plugin.py +++ b/material/plugins/info/plugin.py @@ -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. diff --git a/src/plugins/info/plugin.py b/src/plugins/info/plugin.py index 6b093182d..21266bac8 100644 --- a/src/plugins/info/plugin.py +++ b/src/plugins/info/plugin.py @@ -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.