]> git.ipfire.org Git - thirdparty/mtr.git/commit
warnings: multiply timeval seconds only when the value is small 135/head
authorSami Kerola <kerolasa@iki.fi>
Mon, 15 Aug 2016 20:52:05 +0000 (21:52 +0100)
committerSami Kerola <kerolasa@iki.fi>
Mon, 15 Aug 2016 20:56:15 +0000 (21:56 +0100)
commit1597bd6b7c510475f668406037b35b39e186af4f
tree26dad244a1168a55e151f36539aa7ed6812f8db8
parent507092a9099a286f86639d9cd38dcdc1f28117ff
warnings: multiply timeval seconds only when the value is small

It should be safe to multiply timeval seconds by million after substracting
sequence timestamp from now.  The reason to postpone multiply operation is
to ensure there is smallest possible change for interger overflow to happen.
net.c