genfio: Enforce time_based if runtime > 0
authorErwan Velu <erwan@enovance.com>
Fri, 12 Jul 2013 15:13:59 +0000 (17:13 +0200)
committerErwan Velu <erwan@enovance.com>
Fri, 12 Jul 2013 15:13:59 +0000 (17:13 +0200)
If the device is short and the bandwidth pretty high, we can exit
_before_ runtime is achieved. To avoid this phenomena, let's use
time_based directive that will ensure that no run will be shorten.

tools/genfio

index 4c1e710d2b2784d79bae4737d95d758920113a8d..6d3220daf1a4d93568a20f5950272a8f1198ac37 100755 (executable)
@@ -101,6 +101,7 @@ EOF
 if [ "$RUNTIME" != "0" ]; then
 cat >>$TEMPLATE << EOF
 runtime=$RUNTIME
+time_based
 EOF
 fi