Original commit message from CVS: use the rate of the logical stream to calculate duration instead of current rate.