|
@@ -1281,7 +1281,7 @@ class Worker
|
|
|
file_put_contents(self::$_statisticsFile,
|
|
file_put_contents(self::$_statisticsFile,
|
|
|
"pid\tmemory " . str_pad('listening', self::$_maxSocketNameLength) . " " . str_pad('worker_name',
|
|
"pid\tmemory " . str_pad('listening', self::$_maxSocketNameLength) . " " . str_pad('worker_name',
|
|
|
self::$_maxWorkerNameLength) . " connections " . str_pad('total_request',
|
|
self::$_maxWorkerNameLength) . " connections " . str_pad('total_request',
|
|
|
- 13) . " " . str_pad('send_fail', 9) . " " . str_pad('throw_exception', 15) . "\n", FILE_APPEND);
|
|
|
|
|
|
|
+ 13) . " " . str_pad('send_fail', 9) . " " . str_pad('timers', 15) . "\n", FILE_APPEND);
|
|
|
|
|
|
|
|
chmod(self::$_statisticsFile, 0722);
|
|
chmod(self::$_statisticsFile, 0722);
|
|
|
|
|
|
|
@@ -1301,7 +1301,7 @@ class Worker
|
|
|
$worker_status_str .= str_pad(ConnectionInterface::$statistics['connection_count'],
|
|
$worker_status_str .= str_pad(ConnectionInterface::$statistics['connection_count'],
|
|
|
11) . " " . str_pad(ConnectionInterface::$statistics['total_request'],
|
|
11) . " " . str_pad(ConnectionInterface::$statistics['total_request'],
|
|
|
14) . " " . str_pad(ConnectionInterface::$statistics['send_fail'],
|
|
14) . " " . str_pad(ConnectionInterface::$statistics['send_fail'],
|
|
|
- 9) . " " . str_pad(ConnectionInterface::$statistics['throw_exception'], 15) . "\n";
|
|
|
|
|
|
|
+ 9) . " " . str_pad(self::$globalEvent->getTimerCount(), 15) . "\n";
|
|
|
file_put_contents(self::$_statisticsFile, $worker_status_str, FILE_APPEND);
|
|
file_put_contents(self::$_statisticsFile, $worker_status_str, FILE_APPEND);
|
|
|
}
|
|
}
|
|
|
|
|
|