From e2d0aee863f6da130833bc1d6c2247a64f130b88 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Fri, 13 Feb 2015 00:17:30 -0600 Subject: force minimum 100000 byte log file size. Some have been confused thinking this is KB, in some cases causing problems. This should help, and there shouldn't be a need for logs smaller than that. --- usr/local/www/diag_logs_settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/www/diag_logs_settings.php b/usr/local/www/diag_logs_settings.php index 0984c5e..e2eca1a 100644 --- a/usr/local/www/diag_logs_settings.php +++ b/usr/local/www/diag_logs_settings.php @@ -109,8 +109,8 @@ if ($_POST['resetlogs'] == gettext("Reset Log Files")) { } if (isset($_POST['logfilesize']) && (strlen($_POST['logfilesize']) > 0)) { - if (!is_numeric($_POST['logfilesize']) || ($_POST['logfilesize'] < 5120)) { - $input_errors[] = gettext("Log file size must be a positive integer greater than 5120."); + if (!is_numeric($_POST['logfilesize']) || ($_POST['logfilesize'] < 100000)) { + $input_errors[] = gettext("Log file size must be numeric and greater than or equal to 100000."); } } if (!$input_errors) { -- cgit v1.1