Skip to content

Commit

Permalink
Show how much memory was allocated for disk buffers.
Browse files Browse the repository at this point in the history
  • Loading branch information
atsampson authored and simoninns committed Jun 18, 2022
1 parent 97fa5fc commit de7e7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Linux-Application/DomesdayDuplicator/usbcapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ void UsbCapture::run(void)
// Note: Using vectors would be neater, but they are just too slow
void UsbCapture::allocateDiskBuffers(void)
{
qDebug() << "UsbCapture::allocateDiskBuffers(): Allocating memory for disk buffers";
qDebug() << "UsbCapture::allocateDiskBuffers(): Allocating" << (1ULL * TRANSFERSIZE * TRANSFERSPERDISKBUFFER * NUMBEROFDISKBUFFERS) / (1024 * 1024) << "MiB memory for disk buffers";
// Allocate the disk buffers
diskBuffers = static_cast<unsigned char **>(calloc(NUMBEROFDISKBUFFERS, sizeof(unsigned char *)));
if (diskBuffers != nullptr) {
Expand Down

0 comments on commit de7e7e9

Please sign in to comment.