[Darshan-commits] [Git][darshan/darshan][master] don't update timers if timestamps are zero

Shane Snyder xgitlab at cels.anl.gov
Tue Jul 25 11:34:02 CDT 2017


Shane Snyder pushed to branch master at darshan / darshan


Commits:
2d14002d by Shane Snyder at 2017-07-25T11:32:33-05:00
don't update timers if timestamps are zero

- - - - -


1 changed file:

- darshan-runtime/darshan-common.h


Changes:

=====================================
darshan-runtime/darshan-common.h
=====================================
--- a/darshan-runtime/darshan-common.h
+++ b/darshan-runtime/darshan-common.h
@@ -16,6 +16,8 @@
  * I/O operation (which we don't want to overlap with).
  */
 #define DARSHAN_TIMER_INC_NO_OVERLAP(__timer, __tm1, __tm2, __last) do{ \
+    if (__tm1 == 0.0 || __tm2 == 0.0) \
+        break; \
     if(__tm1 > __last) \
         __timer += (__tm2 - __tm1); \
     else \



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/2d14002d939f478b24b9556946c3b5c78fd2fc6f

---
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/2d14002d939f478b24b9556946c3b5c78fd2fc6f
You're receiving this email because of your account on xgitlab.cels.anl.gov.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20170725/c46cbe0b/attachment.html>


More information about the Darshan-commits mailing list