mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-16 01:19:57 +00:00
Download: provide end time for ride blocks
for better guessing in preview ,)
This commit is contained in:
@@ -239,7 +239,10 @@ SrmDevice::preview( StatusCallback statusCallback, QString &err )
|
||||
while( srmio_pc_xfer_block_next( pc, &block )){
|
||||
DeviceRideItemPtr ride( new DeviceRideItem );
|
||||
|
||||
ride->startTime.setTime_t( 0.1 * block.start );
|
||||
if( block.start )
|
||||
ride->startTime.setTime_t( 0.1 * block.start );
|
||||
if( block.end )
|
||||
ride->startTime.setTime_t( 0.1 * block.end );
|
||||
ride->work = block.total;
|
||||
rideList.append( ride );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user