From ae15748a909adc912cc1e018a3d1be2237188644 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Wed, 29 May 2024 23:45:26 -0600 Subject: [PATCH] Fix DEBUG_TIMINGS build --- src/shared/ipc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/ipc.cpp b/src/shared/ipc.cpp index bb758e5..d21050d 100644 --- a/src/shared/ipc.cpp +++ b/src/shared/ipc.cpp @@ -166,7 +166,7 @@ class Queue { swtfb_msg.mdata.update = msg; #ifdef DEBUG_TIMING - swtfb_msg.ms = get_now(); + swtfb_msg.mdata.ms = get_now(); #endif int wrote = msgsnd(msqid, (void *)&swtfb_msg, sizeof(swtfb_msg.mdata.update), 0); if (wrote != 0) { @@ -179,8 +179,8 @@ class Queue { errno = 0; auto len = msgrcv(msqid, &buf, sizeof(buf.mdata), 0, MSG_NOERROR); #ifdef DEBUG_TIMING - auto rect = buf.update.update_region; - cerr << get_now() - buf.ms << "ms MSG Q RECV " << rect.left << " " + auto rect = buf.mdata.update.update_region; + cerr << get_now() - buf.mdata.ms << "ms MSG Q RECV " << rect.left << " " << rect.top << " " << rect.width << " " << rect.height << endl; #endif if (len >= 0) {