File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,16 @@ export class MemoryLogger {
122
122
heapUsed : `${ ( memoryUsage . heapUsed / 1024 / 1024 ) . toFixed ( 2 ) } MB` ,
123
123
external : `${ ( memoryUsage . external / 1024 / 1024 ) . toFixed ( 2 ) } MB` ,
124
124
uptime : formatDuration ( process . uptime ( ) * 1000 ) ,
125
- totalUptime : formatDuration ( Date . now ( ) - this . startTime )
125
+ totalUptime : formatDuration ( Date . now ( ) - this . startTime ) ,
126
126
}
127
127
128
128
const systemMemoryInfo = {
129
129
totalMem : `${ ( os . totalmem ( ) / 1024 / 1024 / 1024 ) . toFixed ( 2 ) } GB` ,
130
130
freeMem : `${ ( os . freemem ( ) / 1024 / 1024 / 1024 ) . toFixed ( 2 ) } GB` ,
131
- loadAvg : os . loadavg ( ) . map ( load => load . toFixed ( 2 ) ) . join ( ", " )
131
+ loadAvg : os
132
+ . loadavg ( )
133
+ . map ( ( load ) => load . toFixed ( 2 ) )
134
+ . join ( ", " ) ,
132
135
}
133
136
134
137
const memoryLog = `[MEMORY:${ context } ] Node: ${ JSON . stringify ( nodeMemoryInfo ) } | System: ${ JSON . stringify ( systemMemoryInfo ) } `
@@ -211,4 +214,4 @@ export function getMemoryLogger(): MemoryLogger {
211
214
instance = new MemoryLogger ( )
212
215
}
213
216
return instance
214
- }
217
+ }
You can’t perform that action at this time.
0 commit comments