hantek-6xxx: store the amount samples received

This commit is contained in:
Benjamin Larsson 2016-04-04 19:57:50 +02:00 committed by Uwe Hermann
parent 8d6d7d5d0d
commit 10e0d374cb
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ static void LIBUSB_CALL receive_transfer(struct libusb_transfer *transfer)
}
devc->sample_buf[devc->sample_buf_write++] = transfer;
devc->samp_received = transfer->actual_length / NUM_CHANNELS;
devc->samp_received += transfer->actual_length / NUM_CHANNELS;
sr_spew("receive_transfer(): calculated samplerate == %" PRIu64 "ks/s",
(uint64_t)(transfer->actual_length * 1000 /