Fix apstats

This commit is contained in:
Laurent Destailleur 2024-01-13 14:55:21 +01:00
parent fd76618d9c
commit ced1fad3fc
2 changed files with 7 additions and 3 deletions

View File

@ -113,8 +113,8 @@ exec($commandcheck, $output_arrtd, $resexectd);
// Count lines of code of dependencies
$commandcheck = 'dev/tools/github_authors_and_commits_bydate.sh bymonth';
print 'Execute github_authors_and_commits_bydate to count number of commits per month: '.$commandcheck."\n";
$commandcheck = 'dev/tools/github_authors_and_commits_bydate.sh byday';
print 'Execute github_authors_and_commits_bydate to count number of commits by day: '.$commandcheck."\n";
$output_arrglpu = array();
$resexecglpu = 0;
exec($commandcheck, $output_arrglpu, $resexecglpu);
@ -432,9 +432,13 @@ $html .= '<h2><span class="fas fa-dollar-sign pictofixedwidth"></span>Contributi
$html .= '<div class="boxallwidth">'."\n";
$html .= 'TODO...';
$html .= '<!-- ';
foreach ($output_arrglpu as $line) {
$html .= $line."\n";
}
$html .= ' -->';
$html .= '</div>';

View File

@ -11,7 +11,7 @@ if [ "x$1" = "x" ]; then
exit
fi
if [ "x$1" != "xbyyear" -a "x$1" != "xbymonth" ]; then
echo "Usage: $0 (byyear|bymonth) YEARSTART [YEAREND]"
echo "Usage: $0 (byyear|bymonth|perday) YEARSTART [YEAREND]"
exit
fi