Skip to content
Commit 17d413b2 authored by Leonid Iziumtsev's avatar Leonid Iziumtsev Committed by Joe Hershberger
Browse files

net: Fix netretry condition



The "net_try_count" counter starts from "1".
And the "retrycnt" contains requested amount of retries.

With current logic, that means that the actual retry amount
will be one time less then what we set in "netretry" env.
For example setting "netretry" to "once" will make "retrycnt"
equal "1", so no retries will be triggered at all.

Fix the logic by changing the statement of "if" condition.

Signed-off-by: default avatarLeonid Iziumtsev <leonid.iziumtsev@se.atlascopco.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent b321c44a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment