Description: iperf does not handle right large time values
 Reported by Eugene Butan <eugene@mikrotik.com>
 When I invoke 'iperf' with '-t 100000000' argument from an ordinary shell
 prompt it immediately exits displaying incorrect bandwidth. If I supply
 smaller time value, iperf works as expected.
Author: Roberto Lumbreras <rover@debian.org>
Bug-Debian: http://bugs.debian.org/346099
Forwarded: https://sourceforge.net/tracker/index.php?func=detail&aid=3140391&group_id=128336&atid=711371

Index: iperf-2.0.9+dfsg1/src/Settings.cpp
===================================================================
--- iperf-2.0.9+dfsg1.orig/src/Settings.cpp	2016-07-15 13:13:37.261243154 +0200
+++ iperf-2.0.9+dfsg1/src/Settings.cpp	2016-07-15 13:13:37.257243133 +0200
@@ -475,7 +475,7 @@
             // time mode (instead of amount mode), units is 10 ms
             setModeTime( mExtSettings );
             setServerModeTime( mExtSettings );
-            mExtSettings->mAmount = (int) (atof( optarg ) * 100.0);
+            mExtSettings->mAmount = (max_size_t) (atof( optarg ) * 100.0);
             break;
 
         case 'u': // UDP instead of TCP
