File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
28832883process . 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' ) ;
You can’t perform that action at this time.
0 commit comments