From aea35bbf478c69ab3ddfe50090ee4bfb108e986c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 11 Feb 2024 15:42:03 +0100 Subject: [PATCH] Last security on last 6 month --- dev/tools/apstats.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/tools/apstats.php b/dev/tools/apstats.php index 8ececcf7288..c825a4c747b 100755 --- a/dev/tools/apstats.php +++ b/dev/tools/apstats.php @@ -206,8 +206,8 @@ foreach (array('proj', 'dep') as $source) { // Retrieve the .git information -$nbofdays = 90; -$delay = (3600 * 24 * $nbofdays); +$nbofmonth = 6; +$delay = (3600 * 24 * 30 * $nbofmonth); $urlgit = 'https://api.github.com/search/issues?q=is:pr+repo:Dolibarr/dolibarr+created:>'.dol_print_date(dol_now() - $delay, "%Y-%m"); @@ -587,7 +587,7 @@ if (!empty($output_arrtd)) { // Last security errors $html .= '
'."\n"; -$html .= '

Last security alerts (last '.$nbofdays.' days)

'."\n"; +$html .= '

Last security alerts (last '.$nbofmonth.' month)

'."\n"; $html .= '
'."\n"; $html .= '
'."\n";