diff --git a/srcs/parsing.c b/srcs/parsing.c index 938ce89..65f6f7a 100644 --- a/srcs/parsing.c +++ b/srcs/parsing.c @@ -6,7 +6,7 @@ /* By: tomoron +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/26 17:01:53 by tomoron #+# #+# */ -/* Updated: 2025/08/20 17:07:58 by tomoron ### ########.fr */ +/* Updated: 2025/08/20 17:10:02 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ #include "includes/ft_ping.h" @@ -37,7 +37,7 @@ double get_set_float(char *arg, t_settings *set) float value; char *end; - value = strtol(arg, &end, 10); + value = strtof(arg, &end); if(*end) { fprintf(stderr, "%s: invalid value (`%s' near `%s')\n", set->name, arg, end);