Fix atoms tests after strtod modifications 33/10633/2
Vincent COUVERT [Thu, 28 Feb 2013 10:13:31 +0000 (11:13 +0100)]
Change-Id: I9e9682b07b625592f9362ebec04ac52b1427eb9e

scilab/modules/atoms/macros/atoms_internals/atomsDownload.sci

index d33f6a7..de83297 100644 (file)
@@ -121,11 +121,11 @@ function atomsDownload(url_in,file_out,md5sum)
       timeout_arg = " --timeout=";
     end
 
-    timeout = string(strtod(atomsGetConfig("downloadTimeout")));
+    timeout = strtod(atomsGetConfig("downloadTimeout"));
 
-    if timeout <> "0" then
-      timeout_arg = timeout_arg + timeout;
-    else
+    if ~isnan(timeout) then // Value found in config file
+      timeout_arg = timeout_arg + string(timeout);
+    else // Default timeout
       timeout_arg = timeout_arg + "5";
     end