From f09b8c41c655cd63fa7a9a494379ed3432522ab9 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 17 Jun 2021 02:31:36 +0800 Subject: [PATCH] fix: pidusage usePs for ESPIPE error --- lib/routes/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/routes/index.js b/lib/routes/index.js index 664ba7f5db..1f487806fc 100644 --- a/lib/routes/index.js +++ b/lib/routes/index.js @@ -56,7 +56,9 @@ module.exports = async (ctx) => { } const { disallowRobot } = config; - const stats = await pidusage(process.pid); + const stats = await pidusage(process.pid, { + usePs: true, + }); ctx.body = art(path.resolve(__dirname, '../views/welcome.art'), { showDebug,