Browse Source

fix total memory

walkor 2 năm trước cách đây
mục cha
commit
a2d7b5bc1b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Worker.php

+ 1 - 1
src/Worker.php

@@ -1099,7 +1099,7 @@ class Worker
                 $pid = $pidMath[0];
                 $dataWaitingSort[$pid] = $value;
                 if (preg_match('/^\S+?\s+?(\S+?)\s+?(\S+?)\s+?(\S+?)\s+?(\S+?)\s+?(\S+?)\s+?(\S+?)\s+?(\S+?)\s+?/', $value, $match)) {
-                    $totalMemory += (int)str_ireplace('M', '', $match[1]);
+                    $totalMemory += (float)str_ireplace('M', '', $match[1]);
                     $maxLen1 = max($maxLen1, strlen($match[2]));
                     $maxLen2 = max($maxLen2, strlen($match[3]));
                     $totalConnections += (int)$match[4];