Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix display of fractional seconds in block hover cursor.
There are two paths to displaying the power/time overlay on a workout block: * Hover over the block * Select the qwkcode line corresponding to the block Both of these paths had their own uniquely flawed method of calculating the block duration to display. The first path stored the previous time point as a truncated integer number of seconds, then subtracted it from the current, double precision time point. This resulted in occasional over-reported durations. The second path took the double precision difference between the current and previous time points, then truncated that difference for display. This resulted in occasional under-reported durations. Both of these paths now consistently report the same value. The value shown will take the format ss.s for times less than 60s, or hh:mm:ss for times 60s or more.
- Loading branch information