Skip to content

Commit 1e8fede

Browse files
committed
Improved code.
1 parent 785dcfb commit 1e8fede

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,7 @@ F.loadstats = function() {
28002800

28012801
F.usage = function() {
28022802

2803-
var memory = process.memoryUsage();
2803+
let memory = process.memoryUsage();
28042804
stats.date = NOW;
28052805

28062806
if (stats.id != F.clusterid)
@@ -2831,8 +2831,8 @@ F.loadstats = function() {
28312831
stats.download = F.stats.request.size.floor(3);
28322832
stats.upload = F.stats.response.size.floor(3);
28332833

2834-
var err = F.errors[F.errors.length - 1];
2835-
var timeout = F.timeouts[F.timeouts.length - 1];
2834+
let err = F.errors[F.errors.length - 1];
2835+
let timeout = F.timeouts[F.timeouts.length - 1];
28362836

28372837
stats.lasterror = err ? (err.date.toJSON() + ' ' + (err.name ? (err.name + ' - ') : '') + err.error) : undefined;
28382838
stats.lasttimeout = timeout;
@@ -2881,7 +2881,7 @@ process.on('unhandledRejection', function(e) {
28812881
});
28822882

28832883
process.on('uncaughtException', function(e) {
2884-
var err = e + '';
2884+
let err = e + '';
28852885
if (err.indexOf('listen EADDRINUSE') !== -1) {
28862886
console.log('\nThe IP address and the PORT is already in use.\nYou must change the PORT\'s number or IP address.\n');
28872887
process.send && process.send('total:eaddrinuse');

0 commit comments

Comments
 (0)