Set time operations were only getting to 50% as some of the cb invocations
had 2 stages, but there was only one stage.

Signed-off-by: Scott Talbert <s...@techie.net>
---
 libconcord/libconcord.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libconcord/libconcord.cpp b/libconcord/libconcord.cpp
index 801e42c..53c6e3c 100644
--- a/libconcord/libconcord.cpp
+++ b/libconcord/libconcord.cpp
@@ -951,7 +951,7 @@ int _set_time(lc_callback cb, void *cb_arg)
     struct tm *lt = localtime(&t);
 
     if (cb)
-        cb(LC_CB_STAGE_SET_TIME, 0, 1, 2, LC_CB_COUNTER_TYPE_STEPS, cb_arg,
+        cb(LC_CB_STAGE_SET_TIME, 0, 0, 1, LC_CB_COUNTER_TYPE_STEPS, cb_arg,
            NULL);
 
     rtime.second = lt->tm_sec;
@@ -969,7 +969,7 @@ int _set_time(lc_callback cb, void *cb_arg)
         return err;
     }
     if (cb)
-        cb(LC_CB_STAGE_SET_TIME, 1, 2, 2, LC_CB_COUNTER_TYPE_STEPS, cb_arg,
+        cb(LC_CB_STAGE_SET_TIME, 1, 1, 1, LC_CB_COUNTER_TYPE_STEPS, cb_arg,
            NULL);
 
     return 0;
-- 
1.8.3.1


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
concordance-devel mailing list
concordance-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/concordance-devel

Reply via email to