Skip to content
Snippets Groups Projects
Commit cc03452a authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Bugfix sur le calcul de la moyenne

parent ad8b5caa
No related branches found
No related tags found
No related merge requests found
......@@ -88,9 +88,7 @@ if ($resql)
{
$jour = (substr($rowa[0],0,2) * 1);
$data[$jour] = ($rowa[1]/60);
$total = $total + $data[$jour];
$i++;
$moydata[$jour] = $total / $i;
}
}
......@@ -101,8 +99,10 @@ if ($resql)
$moydatas[$i] = 0;
if ($data[$j])
$datas[$i] = $data[$j];
if ($moydata[$j])
$moydatas[$i] = $moydata[$j];
$total = $total + $datas[$i];
$moydatas[$i] = $total / $j;
$labels[$i] = $j;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment