fix display of timeout
This commit is contained in:
parent
e5b891eed1
commit
2043d5a671
|
@ -2442,8 +2442,8 @@ static switch_status_t cmd_status(char **argv, int argc, switch_stream_handle_t
|
||||||
|
|
||||||
if (gp->state == REG_STATE_FAILED || gp->state == REG_STATE_TRYING) {
|
if (gp->state == REG_STATE_FAILED || gp->state == REG_STATE_TRYING) {
|
||||||
time_t now = switch_epoch_time_now(NULL);
|
time_t now = switch_epoch_time_now(NULL);
|
||||||
if (gp->retry > now) {
|
if (gp->reg_timeout > now) {
|
||||||
stream->write_function(stream, " (retry: %ds)", gp->retry - now);
|
stream->write_function(stream, " (retry: %ds)", gp->reg_timeout - now);
|
||||||
} else {
|
} else {
|
||||||
stream->write_function(stream, " (retry: NEVER)");
|
stream->write_function(stream, " (retry: NEVER)");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue