[asterisk-commits] qwell: branch 1.4 r49189 - /branches/1.4/main/pbx.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jan 2 10:33:02 MST 2007


Author: qwell
Date: Tue Jan  2 11:33:02 2007
New Revision: 49189

URL: http://svn.digium.com/view/asterisk?view=rev&rev=49189
Log:
Allow fractions of a second in the Wait() application, like it says it allows.

Modified:
    branches/1.4/main/pbx.c

Modified: branches/1.4/main/pbx.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/pbx.c?view=diff&rev=49189&r1=49188&r2=49189
==============================================================================
--- branches/1.4/main/pbx.c (original)
+++ branches/1.4/main/pbx.c Tue Jan  2 11:33:02 2007
@@ -5507,11 +5507,12 @@
  */
 static int pbx_builtin_wait(struct ast_channel *chan, void *data)
 {
+	double s;
 	int ms;
 
 	/* Wait for "n" seconds */
-	if (data && (ms = atof(data)) > 0) {
-		ms *= 1000;
+	if (data && (s = atof(data)) > 0) {
+		ms = s * 1000.0;
 		return ast_safe_sleep(chan, ms);
 	}
 	return 0;



More information about the asterisk-commits mailing list