nl_tokens: / * Determines if the master status has been bad for more than a certain amount of time .
pl_tokens: function isMasterExpired ( instance ) { const masterStatus = instance . masterStatus || { } ; let isExpired = false ; let disconnectedMs ; if ( masterStatus . status !== CloudProvider . STATUS_OK ) { disconnectedMs = new Date ( ) - new <mask> ( masterStatus . lastStatusChange ) ; logger . silly ( 'master has been disconnected for' , disconnectedMs . toString ( ) , 'ms' ) ; if ( disconnectedMs > MAX_DISCONNECTED_MS ) { logger . info ( 'master has been disconnected for too long (' , disconnectedMs . toString ( ) , 'ms )' ) ; isExpired = true ; } } return isExpired ; }