From fe9048281e1f6341be16ca59112ef7aa22582ca5 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Thu, 17 Jun 2021 11:04:12 +0800 Subject: [PATCH] Revert "fix: pidusage usePs for ESPIPE error" This reverts commit f09b8c41c655cd63fa7a9a494379ed3432522ab9. --- lib/routes/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/routes/index.js b/lib/routes/index.js index 1f487806f..664ba7f5d 100644 --- a/lib/routes/index.js +++ b/lib/routes/index.js @@ -56,9 +56,7 @@ module.exports = async (ctx) => { } const { disallowRobot } = config; - const stats = await pidusage(process.pid, { - usePs: true, - }); + const stats = await pidusage(process.pid); ctx.body = art(path.resolve(__dirname, '../views/welcome.art'), { showDebug,