mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-23 13:09:00 +00:00
Revert very broken fix for issue #10540 ... none of these values take ms so I
don't know what I was thinking git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@80547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -89,7 +89,6 @@ static int timeout_read(struct ast_channel *chan, char *cmd, char *data,
|
|||||||
static int timeout_write(struct ast_channel *chan, char *cmd, char *data,
|
static int timeout_write(struct ast_channel *chan, char *cmd, char *data,
|
||||||
const char *value)
|
const char *value)
|
||||||
{
|
{
|
||||||
float f;
|
|
||||||
int x;
|
int x;
|
||||||
char timestr[64];
|
char timestr[64];
|
||||||
struct tm myt;
|
struct tm myt;
|
||||||
@@ -105,10 +104,9 @@ static int timeout_write(struct ast_channel *chan, char *cmd, char *data,
|
|||||||
if (!value)
|
if (!value)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
f = atof(value);
|
x = atoi(value);
|
||||||
if (f < 0)
|
if (x < 0)
|
||||||
f = 1.0;
|
x = 0;
|
||||||
x = (int) (f * 1000);
|
|
||||||
|
|
||||||
switch (*data) {
|
switch (*data) {
|
||||||
case 'a':
|
case 'a':
|
||||||
|
Reference in New Issue
Block a user