Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/condy/cqe_handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ struct TxTimestampResult {
/**
* @brief The timestamp value.
*/
io_timespec ts; // *(io_timespec *)(cqe + 1)
io_timespec ts; // *(io_timespec *)(cqe->big_cqe)
};

/**
Expand All @@ -120,7 +120,7 @@ struct TxTimestampCQEHandler {
result.tstype =
static_cast<int>(cqe->flags >> IORING_TIMESTAMP_TYPE_SHIFT);
result.hwts = cqe->flags & IORING_CQE_F_TSTAMP_HW;
result.ts = *reinterpret_cast<io_timespec *>(cqe + 1);
result.ts = reinterpret_cast<io_timespec &>(cqe->big_cqe);
return {cqe->res, result};
}
};
Expand Down
Loading