NDMeshStreamer: fixed a bug where timeOfLastSend_ was being set when
authorLukasz Wesolowski <wesolwsk@illinois.edu>
Sun, 18 Mar 2012 04:20:17 +0000 (23:20 -0500)
committerLukasz Wesolowski <wesolwsk@illinois.edu>
Sun, 18 Mar 2012 04:20:17 +0000 (23:20 -0500)
no send had taken place

src/libs/ck-libs/NDMeshStreamer/NDMeshStreamer.h

index ac0cee9c3b7f851cf11004a043771ebfd3a4f45e..f52fc11cffbb6760614f1b975692b6b71a0202b6 100644 (file)
@@ -579,9 +579,6 @@ void MeshStreamer<dtype>::flushDirect(){
     if (!isPeriodicFlushEnabled_ || 
        1000 * (CkWallTimer() - timeOfLastSend_) >= progressPeriodInMs_) {
       flushAllBuffers();
-    }
-
-    if (isPeriodicFlushEnabled_) {
       timeOfLastSend_ = CkWallTimer();
     }