added an error check that sendtime should be less than recv time.
authorGengbin Zheng <gzheng@illinois.edu>
Sun, 23 May 2010 04:22:33 +0000 (23:22 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Sun, 23 May 2010 04:22:33 +0000 (23:22 -0500)
examples/bigsim/tools/loadlog/loadlog.C

index 3483e8106e5e06a81832080815ebdcea19424ec8..539033b7a612dc55f398ae7c01ef9d5951c3815c 100644 (file)
@@ -57,6 +57,8 @@ int main()
         BgMsgEntry *msg = bglog->msgs[midx];
         if (msg->sendTime < bglog->startTime || msg->sendTime > bglog->endTime)
           printf("[%d] Invalid MsgEntry [%d]: sendTime: %f in log startT: %f endT: %f execT: %f\n", i, idx, msg->sendTime, bglog->startTime, bglog->endTime, bglog->execTime);
+        if (msg->sendTime > msg->recvTime)
+          printf("[%d] Invalid recvTime in MsgEntry [%d]: sendTime: %f recvTime: %f\n", i, idx, msg->sendTime, msg->recvTime);
       }
     }