Change-Id: I9e9682b07b625592f9362ebec04ac52b1427eb9e
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