We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad5a48 commit 4fde829Copy full SHA for 4fde829
index.js
@@ -98,7 +98,7 @@ var latencyReport = function() {
98
max: latencyData.max,
99
avg: latencyData.total / latencyData.count,
100
};
101
- exports.emit('eventloop', { time: Date.now(), latency: latency });
+ module.exports.emit('eventloop', { time: Date.now(), latency: latency });
102
latencyData.count = 0;
103
latencyData.min = 1 * 60 * 1000;
104
latencyData.max = 0;
@@ -124,7 +124,7 @@ if (global.Appmetrics) {
124
global.Appmetrics.VERSION +
125
'.\n'
126
);
127
- module.exports = global.Appmetrics;
+ exports = module.exports = global.Appmetrics;
128
} else {
129
global.Appmetrics = module.exports;
130
module.exports.VERSION = VERSION;
0 commit comments