fix: pidusage usePs for ESPIPE error

This commit is contained in:
DIYgod
2021-06-17 02:31:36 +08:00
parent bfefdba903
commit f09b8c41c6
+3 -1
View File
@@ -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,