Skip to content

Commit 6f267f6

Browse files
committed
Fix path
1 parent 3787572 commit 6f267f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = function (options) {
1919
console.warn('OoM is imminent: Full GC (Mark/Sweep/Compact) complete and still more than %s% (%s%) of the heap is used. Creating heapdump now. GC stats: ', options.threshold, Math.round(heapSizeUsedPercentage), stats);
2020

2121
// start OoMworker to create heapdump
22-
let child = cp.spawn('node', ['./oomWorker.js', options.port, options.name], {
22+
let child = cp.spawn('node', [path.resolve(__dirname, './oomWorker.js'), options.port, options.name], {
2323
cmd: path.dirname(require.main.filename),
2424
stdio: 'inherit'
2525
});

0 commit comments

Comments
 (0)