Commit ce7542a5 authored by fisaila's avatar fisaila
Browse files

Fixed timing bug.



git-svn-id: https://svn.mcs.anl.gov/repos/darshan/branches/darshan-florin-extensions@837 3b7491f3-a168-0410-bf4b-c445ed680a29
parent a1237a77
...@@ -303,12 +303,11 @@ void darshan_shutdown_epoch(struct darshan_job_runtime* final_job, int timing_fl ...@@ -303,12 +303,11 @@ void darshan_shutdown_epoch(struct darshan_job_runtime* final_job, int timing_fl
static int epoch_idx = 0; static int epoch_idx = 0;
//CP_LOCK(); //CP_LOCK();
//if(!darshan_global_job)
// if(!darshan_global_job) //{
// {
// CP_UNLOCK(); // CP_UNLOCK();
// return; // return;
// } //}
/* disable further tracing while hanging onto the data so that we can /* disable further tracing while hanging onto the data so that we can
* write it out * write it out
*/ */
...@@ -2611,7 +2610,7 @@ void darshan_shutdown(int timing_flag) ...@@ -2611,7 +2610,7 @@ void darshan_shutdown(int timing_flag)
CP_UNLOCK(); CP_UNLOCK();
if (!epoch_counter) if (!epoch_counter)
darshan_shutdown_epoch(final_job, 0); darshan_shutdown_epoch(final_job, timing_flag);
else { else {
int i,j; int i,j;
...@@ -2642,7 +2641,7 @@ void darshan_shutdown(int timing_flag) ...@@ -2642,7 +2641,7 @@ void darshan_shutdown(int timing_flag)
final_job->file_runtime_array[j].aio_list_tail = epoch_file_runtime_array[i][j].aio_list_tail; final_job->file_runtime_array[j].aio_list_tail = epoch_file_runtime_array[i][j].aio_list_tail;
} }
CP_UNLOCK(); CP_UNLOCK();
darshan_shutdown_epoch(final_job, 0); darshan_shutdown_epoch(final_job, timing_flag);
} }
} }
......
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