Browse Source

'修改排队时长计算'

Ethan 6 years ago
parent
commit
9c352bb3ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/admin/controller/Report.php

+ 1 - 1
application/admin/controller/Report.php

@@ -154,7 +154,7 @@ class Report extends Base
             'allQueue' => $allQueue,
             'allQueue' => $allQueue,
             'transfer' => floor($transfer / 2),
             'transfer' => floor($transfer / 2),
             'reply' => ($allChatLog ? sprintf("%.2f", (($reply / ($allChatLog - $reply)) * 100)) : '--'),
             'reply' => ($allChatLog ? sprintf("%.2f", (($reply / ($allChatLog - $reply)) * 100)) : '--'),
-            'waitTime' => ($allService ? ceil($alllWaitTime / $allService) : '--'),
+            'waitTime' => ($allQueue ? ceil($alllWaitTime / $allQueue) : '--'),
             'serviceTime' => ($allService ? ceil($serviceTime / $allService) : '--'),
             'serviceTime' => ($allService ? ceil($serviceTime / $allService) : '--'),
             'cpdTime' => ($allService ? ceil($cpdTime / $allService) : '--'),
             'cpdTime' => ($allService ? ceil($cpdTime / $allService) : '--'),
             'evaluateGood' => (($evaluateGood + $evaluateSecondary + $evaluateBad) ? sprintf("%.2f", (($evaluateGood / ($evaluateGood + $evaluateSecondary + $evaluateBad)) * 100)) : '--'),
             'evaluateGood' => (($evaluateGood + $evaluateSecondary + $evaluateBad) ? sprintf("%.2f", (($evaluateGood / ($evaluateGood + $evaluateSecondary + $evaluateBad)) * 100)) : '--'),