File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,9 @@ export class StatusService {
31
31
32
32
const folderSize = await this . getFolderSize ( )
33
33
34
- const totalDiskUsed = disk . total - disk . available
35
-
36
34
const freePercentage = parseFloat ( ( ( disk . available / disk . total ) * 100 ) . toFixed ( 2 ) )
37
- const usedPercentage = parseFloat ( ( ( folderSize / totalDiskUsed ) * 100 ) . toFixed ( 2 ) )
38
- const sizePercentage = parseFloat ( ( ( ( totalDiskUsed - folderSize ) / disk . total ) * 100 ) . toFixed ( 2 ) )
35
+ const usedPercentage = parseFloat ( ( ( folderSize / disk . total ) * 100 ) . toFixed ( 2 ) )
36
+ const sizePercentage = parseFloat ( ( ( ( disk . total - disk . available - folderSize ) / disk . total ) * 100 ) . toFixed ( 2 ) )
39
37
40
38
return {
41
39
version : 'unknown' , // TODO:: Get git tag
Original file line number Diff line number Diff line change 24
24
"lint" : " nx workspace-lint && nx lint" ,
25
25
"logs" : " yarn pm2 logs" ,
26
26
"nx" : " nx" ,
27
- "start " : " nx serve " ,
27
+ "reload:prod " : " yarn stop:prod && yarn start:prod " ,
28
28
"setup" : " pm2 install pm2-logrotate && yarn build" ,
29
+ "start" : " nx serve" ,
29
30
"start:api" : " nx serve api" ,
30
31
"start:prod" : " pm2 start ecosystem.config.js" ,
31
32
"stop:prod" : " pm2 stop ecosystem.config.js" ,
32
33
"test" : " nx test" ,
33
34
"update" : " nx migrate latest" ,
34
35
"workspace-schematic" : " nx workspace-schematic"
35
36
},
36
- "resolutions" : {
37
- "webtorrent" : " 0.108.6" ,
38
- "webtorrent-cli" : " 3.0.7" ,
39
- "wrtc" : " 0.4.5"
40
- },
41
37
"dependencies" : {
42
38
"@hapi/joi" : " 17.1.1" ,
43
39
"@nestjs/cli" : " 7.5.1" ,
91
87
"ts-node" : " ~9.0.0" ,
92
88
"tslint" : " ~6.1.3" ,
93
89
"typescript" : " ~4.0.3"
90
+ },
91
+ "resolutions" : {
92
+ "webtorrent" : " 0.108.6" ,
93
+ "webtorrent-cli" : " 3.0.7" ,
94
+ "wrtc" : " 0.4.5"
94
95
}
95
96
}
You can’t perform that action at this time.
0 commit comments