fixing input_ontime comparison

This allows to use pump data (l/h) to count the amount of time
Merge pull request #89 from ibr/master

Fixing input_ontime comparison