Fixing average
This commit is contained in:
parent
a9ee94b8fd
commit
a71505def5
1 changed files with 1 additions and 1 deletions
|
@ -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'] ++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue