diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-15 23:00:47 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-15 23:00:47 +0000 |
commit | ff15e0fa53156b9994da3f726bfe91232de6195a (patch) | |
tree | 896015cada90b49858e1bf6503d9583704a56179 /manager.c | |
parent | c05cf07847cb384ba66aa29d5eda580eda413ffb (diff) |
add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug #4504)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6146 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'manager.c')
-rwxr-xr-x | manager.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -683,11 +683,10 @@ static int action_status(struct mansession *s, struct message *m) char idText[256] = ""; struct ast_channel *c; char bridge[256]; - struct timeval now; + struct timeval now = ast_tvnow(); long elapsed_seconds=0; int all = !name || ast_strlen_zero(name); /* set if we want all channels */ - gettimeofday(&now, NULL); astman_send_ack(s, m, "Channel status will follow"); if (id && !ast_strlen_zero(id)) snprintf(idText,256,"ActionID: %s\r\n",id); |