#exp_unix_timestamp seitched to original str
This commit is contained in:
parent
6a57f99cdd
commit
f15444af65
|
@ -2786,7 +2786,6 @@ static int show_reg_callback(void *pArg, int argc, char **argv, char **columnNam
|
||||||
struct cb_helper *cb = (struct cb_helper *) pArg;
|
struct cb_helper *cb = (struct cb_helper *) pArg;
|
||||||
char exp_buf[128] = "";
|
char exp_buf[128] = "";
|
||||||
int exp_secs = 0;
|
int exp_secs = 0;
|
||||||
int exp_unix = 0;
|
|
||||||
switch_time_exp_t tm;
|
switch_time_exp_t tm;
|
||||||
|
|
||||||
cb->row_process++;
|
cb->row_process++;
|
||||||
|
@ -2794,7 +2793,6 @@ static int show_reg_callback(void *pArg, int argc, char **argv, char **columnNam
|
||||||
if (argv[6]) {
|
if (argv[6]) {
|
||||||
time_t now = switch_epoch_time_now(NULL);
|
time_t now = switch_epoch_time_now(NULL);
|
||||||
switch_time_t etime = atoi(argv[6]);
|
switch_time_t etime = atoi(argv[6]);
|
||||||
exp_unix = atoi(argv[6]);
|
|
||||||
switch_size_t retsize;
|
switch_size_t retsize;
|
||||||
|
|
||||||
exp_secs = (int)(etime - now);
|
exp_secs = (int)(etime - now);
|
||||||
|
@ -2807,7 +2805,7 @@ static int show_reg_callback(void *pArg, int argc, char **argv, char **columnNam
|
||||||
"User: \t%s@%s\n"
|
"User: \t%s@%s\n"
|
||||||
"Contact: \t%s\n"
|
"Contact: \t%s\n"
|
||||||
"Agent: \t%s\n"
|
"Agent: \t%s\n"
|
||||||
"Status: \t%s(%s) EXP(%s) EXPSECS(%d) EXPUNIX(%d)\n"
|
"Status: \t%s(%s) EXP(%s) EXPSECS(%d) EXPUNIX(%s)\n"
|
||||||
"Ping-Status:\t%s\n"
|
"Ping-Status:\t%s\n"
|
||||||
"Ping-Time:\t%0.2f\n"
|
"Ping-Time:\t%0.2f\n"
|
||||||
"Host: \t%s\n"
|
"Host: \t%s\n"
|
||||||
|
@ -2817,7 +2815,7 @@ static int show_reg_callback(void *pArg, int argc, char **argv, char **columnNam
|
||||||
"Auth-Realm: \t%s\n"
|
"Auth-Realm: \t%s\n"
|
||||||
"MWI-Account:\t%s@%s\n\n",
|
"MWI-Account:\t%s@%s\n\n",
|
||||||
switch_str_nil(argv[0]), switch_str_nil(argv[1]), switch_str_nil(argv[2]), switch_str_nil(argv[3]),
|
switch_str_nil(argv[0]), switch_str_nil(argv[1]), switch_str_nil(argv[2]), switch_str_nil(argv[3]),
|
||||||
switch_str_nil(argv[7]), switch_str_nil(argv[4]), switch_str_nil(argv[5]), exp_buf, exp_secs, exp_unix, switch_str_nil(argv[18]),
|
switch_str_nil(argv[7]), switch_str_nil(argv[4]), switch_str_nil(argv[5]), exp_buf, exp_secs, switch_str_nil(argv[6]), switch_str_nil(argv[18]),
|
||||||
(float)atoll(switch_str_nil(argv[19]))/1000, switch_str_nil(argv[11]), switch_str_nil(argv[12]),
|
(float)atoll(switch_str_nil(argv[19]))/1000, switch_str_nil(argv[11]), switch_str_nil(argv[12]),
|
||||||
switch_str_nil(argv[13]), switch_str_nil(argv[14]),
|
switch_str_nil(argv[13]), switch_str_nil(argv[14]),
|
||||||
switch_str_nil(argv[15]), switch_str_nil(argv[16]), switch_str_nil(argv[17]));
|
switch_str_nil(argv[15]), switch_str_nil(argv[16]), switch_str_nil(argv[17]));
|
||||||
|
|
Loading…
Reference in New Issue