Commit 22400120 authored by Philip Carns's avatar Philip Carns

filter out negative times in INC macro

parent c4133f01
......@@ -18,10 +18,10 @@
#define DARSHAN_TIMER_INC_NO_OVERLAP(__timer, __tm1, __tm2, __last) do{ \
if(__tm1 > __last) \
__timer += (__tm2 - __tm1); \
else \
else if(__tm2 > __last) {\
__timer += (__tm2 - __last); \
if(__tm2 > __last) \
__last = __tm2; \
}\
} while(0)
/* increment histogram bucket depending on the given __value
......
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