diff --git a/report_ticket_by_client.php b/report_ticket_by_client.php index 6f7879ad..2f0992a6 100644 --- a/report_ticket_by_client.php +++ b/report_ticket_by_client.php @@ -79,7 +79,7 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients Client Tickets raised Tickets closed - Time worked (H:M:S) + Total Time worked (H:M:S) Avg time to close @@ -119,6 +119,7 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients $total += ($closedTime->getTimestamp() - $openedTime->getTimestamp()); $count++; } + $avg_time_to_close = $total / $count; ?> @@ -127,7 +128,7 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients - +