modify plugin name

This commit is contained in:
2022-02-18 14:54:54 +08:00
parent 42bea9d93a
commit 576f97a53d
+2 -2
View File
@@ -125,12 +125,12 @@ class Command extends Component
/** /**
* @param int $time * @param float $time
* @param mixed $result * @param mixed $result
* @return mixed * @return mixed
* @throws Exception * @throws Exception
*/ */
private function _timeout_log(int $time, mixed $result): mixed private function _timeout_log(float $time, mixed $result): mixed
{ {
if (microtime(true) - $time >= 0.02) { if (microtime(true) - $time >= 0.02) {
$this->warning('Mysql:' . Json::encode([$this->sql, $this->params]) . (microtime(true) - $time)); $this->warning('Mysql:' . Json::encode([$this->sql, $this->params]) . (microtime(true) - $time));