Skip to content

Commit

Permalink
fix(StateInventory): more precise label / info
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz authored and trasher committed Dec 19, 2023
1 parent cc1d8e3 commit a48aead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/stateinventory.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function display($options = [])
echo "<th>" . __('Ending date', 'glpiinventory') . "</th>";
echo "<th>" . __('Total duration') . "</th>";
echo "<th>" . __('Number per second', 'glpiinventory') . "</th>";
echo "<th>" . __('Threads number', 'glpiinventory') . "</th>";
echo "<th>" . __('Threads / Timeout configuration', 'glpiinventory') . "</th>";
echo "<th>" . __('To inventory', 'glpiinventory') . "</th>";
echo "<th>" . __('Error(s)', 'glpiinventory') . "</th>";
echo "</tr>";
Expand Down Expand Up @@ -175,7 +175,7 @@ public function display($options = [])
} elseif (strstr($taskjoblog['comment'], " No response from remote host")) {
$nb_errors++;
} elseif ($taskjoblog['state'] == "1") {
$nb_threads = str_replace(" threads", "", $taskjoblog['comment']);
$nb_threads = $taskjoblog['comment'];
$start_date = $taskjoblog['date'];
}

Expand Down

0 comments on commit a48aead

Please sign in to comment.