File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ config/config/pm2.yaml
2727index.js
2828pnpm-workspace.yaml
2929@karinjs /
30+ /dist
30311.js
3132src /test.ts
3233* .cjs
Original file line number Diff line number Diff line change 4848 " dist/apps"
4949 ],
5050 "ts-apps" : [
51- " dist /apps"
51+ " src /apps"
5252 ],
5353 "static" : [
5454 " resources"
Original file line number Diff line number Diff line change @@ -71,9 +71,11 @@ const MB = () => (process.memoryUsage().rss / 1024 / 1024).toFixed(2)
7171
7272const uptime = ( ) => {
7373 const uptime = process . uptime ( )
74- const hour = Math . floor ( uptime / 3600 )
74+ const day = Math . floor ( uptime / 86400 )
75+ const hour = Math . floor ( ( uptime % 86400 ) / 3600 )
7576 const minute = Math . floor ( ( uptime % 3600 ) / 60 )
76- return `${ hour } 小时${ minute } 分钟`
77+ const seconds = Math . floor ( uptime % 60 )
78+ return `${ day } 天${ hour } 小时${ minute } 分钟${ seconds } 秒`
7779}
7880
7981( ( ) => {
You can’t perform that action at this time.
0 commit comments