diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 09a329480..4cc96c755 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -213,7 +213,7 @@ forwardhex(pubkey,hex)\n\ } else if ( strcmp(method,"keepalive") == 0 ) { - printf("got keepalive lag.%d\n",(int32_t)time(NULL) - LP_deadman_switch); + printf("got keepalive lag.%d switch.%u\n",(int32_t)time(NULL) - LP_deadman_switch,LP_deadman_switch); LP_deadman_switch = (uint32_t)time(NULL); return(clonestr("{\"result\":\"success\"}")); } diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 503e1904a..1f7b74932 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -476,7 +476,7 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,double profit //printf("check deadman %u vs %u\n",LP_deadman_switch,(uint32_t)time(NULL)); if ( LP_deadman_switch < time(NULL)-PSOCK_KEEPALIVE ) { - printf("DEAD man's switch activated, register forwarding again\n"); + printf("DEAD man's switch %u activated at %u lag.%d, register forwarding again\n",LP_deadman_switch,(uint32_t)time(NULL),(uint32_t)(time(NULL) - LP_deadman_switch)); if ( pullsock >= 0 ) nn_close(pullsock); pullsock = LP_initpublicaddr(&mypullport,pushaddr,myipaddr,mypullport,0);