diff --git a/include/condy/cqe_handler.hpp b/include/condy/cqe_handler.hpp index a0641347..13f64a9e 100644 --- a/include/condy/cqe_handler.hpp +++ b/include/condy/cqe_handler.hpp @@ -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) }; /** @@ -120,7 +120,7 @@ struct TxTimestampCQEHandler { result.tstype = static_cast(cqe->flags >> IORING_TIMESTAMP_TYPE_SHIFT); result.hwts = cqe->flags & IORING_CQE_F_TSTAMP_HW; - result.ts = *reinterpret_cast(cqe + 1); + result.ts = reinterpret_cast(cqe->big_cqe); return {cqe->res, result}; } };