Fixing average

This commit is contained in:
Axel 2021-12-28 00:09:56 +01:00
parent a9ee94b8fd
commit a71505def5

View file

@ -117,7 +117,7 @@ class ApiController extends Controller
} }
// Populating the response times // Populating the response times
if ($r->status == 1) { if ($r->status == 1 && $r->duration > 0) {
$stats['times'][$r->date]['duration'] += $r->duration; $stats['times'][$r->date]['duration'] += $r->duration;
$stats['times'][$r->date]['count'] ++; $stats['times'][$r->date]['count'] ++;
} }