Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Correct bug in SIwait causing excessive CPU use
[ric-plt/lib/rmr.git]
/
test
/
app_test
/
lreceiver.c
diff --git
a/test/app_test/lreceiver.c
b/test/app_test/lreceiver.c
index
161abc7
..
2801e42
100644
(file)
--- a/
test/app_test/lreceiver.c
+++ b/
test/app_test/lreceiver.c
@@
-139,8
+139,8
@@
int main( int argc, char** argv ) {
msg = rmr_torcv_msg( mrc, msg, 1000 ); // pop every second or so to timeout if needed
if( msg ) {
msg = rmr_torcv_msg( mrc, msg, 1000 ); // pop every second or so to timeout if needed
if( msg ) {
- active = 1;
if( msg->state == RMR_OK ) {
if( msg->state == RMR_OK ) {
+ active = 1;
lmc = (lc_msg_t *) msg->payload;
clock_gettime( CLOCK_REALTIME, &lmc->turn_ts ); // mark time that we received it.
count++;
lmc = (lc_msg_t *) msg->payload;
clock_gettime( CLOCK_REALTIME, &lmc->turn_ts ); // mark time that we received it.
count++;