mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug #4504)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user