Download: provide end time for ride blocks

for better guessing in preview ,)
This commit is contained in:
Rainer Clasen
2011-07-28 23:43:12 +02:00
parent 83431f8904
commit d6200ec2d9
2 changed files with 6 additions and 2 deletions

View File

@@ -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 );