aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Leitner <mleitner@redhat.com>2017-12-18 10:43:44 -0200
committerJiri Pirko <jiri@mellanox.com>2017-12-18 16:27:56 +0100
commit3ede1b278000dd04125f6cdaa833c6524e07d2fb (patch)
tree1ad055a2dc042abcdcd0645066c40c21ed907c17
parentc42cc9955a93bc4bed65adf9a506f92b8df290d7 (diff)
downloadlibteam-3ede1b278000dd04125f6cdaa833c6524e07d2fb.tar.gz
examples: fix duplex comparison against best port
Signed-off-by: Marcelo Ricardo Leitner <mleitner@redhat.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com>
-rwxr-xr-xexamples/python/team_daemon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/team_daemon.py b/examples/python/team_daemon.py
index 476306e..2d2a74f 100755
--- a/examples/python/team_daemon.py
+++ b/examples/python/team_daemon.py
@@ -146,7 +146,7 @@ class TeamDaemon(object):
if port.linkup:
if (not best or
port.speed > best.speed or
- (port.speed == best.speed and port.duplex > port.duplex)):
+ (port.speed == best.speed and port.duplex > best.duplex)):
best = port
if best:
self._change_active_port(active, best)