acu159763 - Fix handling of boundary condition when calculating average ...

...rate for activity
@tony-spataro-rs