genfio: Fixing empty ETA while runtime > 0
authorErwan Velu <erwan@enovance.com>
Thu, 11 Jul 2013 08:16:05 +0000 (10:16 +0200)
committerErwan Velu <erwan@enovance.com>
Fri, 12 Jul 2013 09:47:07 +0000 (11:47 +0200)
commitaf360e392d3c9f6a299596adfcfef8de2f198ad2
tree2489544e2da28435a2034f68c97ed309c9e8ba35
parenta74198375fe2120fa670e2164cc5b92a06c7dbf0
genfio: Fixing empty ETA while runtime > 0

Commit 920e0b66756814f7d01bcbbaf5cf0fd05213628d introduced the runtime=0
support but did considered the amount of minutes in addition of rounded
hours to consider if the ETA message can be shown or not.

This is perfectly wrong since it should have been the total amount of
seconds to consider. If runtime=0, the amount of seconds to run cannot
be computed as = 0.

The present code was wrong as if runtime was rounded on hours it did
show the message that ETA cannot be computed.
tools/genfio