Signed-off-by: Arlin Davis <[email protected]>
---
 dapl/common/dapl_debug.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dapl/common/dapl_debug.c b/dapl/common/dapl_debug.c
index e1a940c..7a0a199 100644
--- a/dapl/common/dapl_debug.c
+++ b/dapl/common/dapl_debug.c
@@ -49,13 +49,13 @@ void dapl_internal_dbg_log(DAPL_DBG_TYPE type, const char 
*fmt, ...)
                dapl_os_get_time(&start_t);
                last_t = start_t;
        }
-       dapl_os_get_time(&current_t);
-       delta_t = current_t - last_t;
-       total_t = current_t - start_t;
-       last_t  = current_t;
 
        if (type & g_dapl_dbg_type) {
                if (DAPL_DBG_DEST_STDOUT & g_dapl_dbg_dest) {
+                       dapl_os_get_time(&current_t);
+                       delta_t = current_t - last_t;
+                       total_t = current_t - start_t;
+                       last_t  = current_t;
                        va_start(args, fmt);
                        fprintf(stdout, "%s:%x:%x: %d us(%d us%s): ",
                                _ptr_host_, dapl_os_getpid(), dapl_os_gettid(),
-- 
1.7.3



_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to