infinite interval when under 0
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/04/26 17:01:53 by tomoron #+# #+# */
|
||||
/* Updated: 2025/08/24 16:43:35 by tomoron ### ########.fr */
|
||||
/* Updated: 2025/08/24 19:53:30 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
#include "includes/ft_ping.h"
|
||||
@ -69,7 +69,7 @@ int check_values(t_settings *set, char *name)
|
||||
return(0);
|
||||
}
|
||||
}
|
||||
if (set->interval < 0.2)
|
||||
if (set->interval < 0.2 && set->interval >= 0)
|
||||
{
|
||||
fprintf(stderr, "%s: option value is too small: %g\n", name, set->interval);
|
||||
return(0);
|
||||
|
Reference in New Issue
Block a user