aniki, 2 months ago This exactly. And because this is open-source, its super easy to track this down. I searched for the source of the error message: github.com/iputils/iputils/blob/…/ping.c#L237 see this is ping_strtod function - so search for that function name and the first hit is the ‘-i’ case: <span style="color:#323232;"> case 'i': </span><span style="color:#323232;"> { </span><span style="color:#323232;"> double optval; </span><span style="color:#323232;"> </span><span style="color:#323232;"> optval = ping_strtod(optarg, _("bad timing interval")); </span><span style="color:#323232;"> if (isless(optval, 0) || isgreater(optval, (double)INT_MAX / 1000)) </span><span style="color:#323232;"> error(2, 0, _("bad timing interval: %s"), optarg); </span><span style="color:#323232;"> rts.interval = (int)(optval * 1000); </span><span style="color:#323232;"> rts.opt_interval = 1; </span><span style="color:#323232;"> } </span><span style="color:#323232;"> break; </span>
This exactly. And because this is open-source, its super easy to track this down. I searched for the source of the error message:
github.com/iputils/iputils/blob/…/ping.c#L237
see this is ping_strtod function - so search for that function name and the first hit is the ‘-i’ case:
ping_strtod
<span style="color:#323232;"> case 'i': </span><span style="color:#323232;"> { </span><span style="color:#323232;"> double optval; </span><span style="color:#323232;"> </span><span style="color:#323232;"> optval = ping_strtod(optarg, _("bad timing interval")); </span><span style="color:#323232;"> if (isless(optval, 0) || isgreater(optval, (double)INT_MAX / 1000)) </span><span style="color:#323232;"> error(2, 0, _("bad timing interval: %s"), optarg); </span><span style="color:#323232;"> rts.interval = (int)(optval * 1000); </span><span style="color:#323232;"> rts.opt_interval = 1; </span><span style="color:#323232;"> } </span><span style="color:#323232;"> break; </span>