aniki,

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>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • linuxmemes@lemmy.world
  • khanakhh
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • ethstaker
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • megavids
  • GTA5RPClips
  • Durango
  • normalnudes
  • cubers
  • tacticalgear
  • cisconetworking
  • tester
  • modclub
  • provamag3
  • anitta
  • Leos
  • JUstTest
  • lostlight
  • All magazines