Commit 827dcb0d authored by Geoff Simmons's avatar Geoff Simmons

bugfix finding the latest timestamp in a transaction group

parent bcc8e9c1
...@@ -399,7 +399,8 @@ dispatch(struct VSL_data *vsl, struct VSL_transaction * const pt[], void *priv) ...@@ -399,7 +399,8 @@ dispatch(struct VSL_data *vsl, struct VSL_transaction * const pt[], void *priv)
reqend_t.tv_usec); reqend_t.tv_usec);
if (reqend_t.tv_sec > latest_t.tv_sec if (reqend_t.tv_sec > latest_t.tv_sec
|| reqend_t.tv_usec > latest_t.tv_usec) || (reqend_t.tv_sec == latest_t.tv_sec
&& reqend_t.tv_usec > latest_t.tv_usec))
memcpy(&latest_t, &reqend_t, sizeof(struct timeval)); memcpy(&latest_t, &reqend_t, sizeof(struct timeval));
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment