MeshStreamer: fixed a bug in periodic flushing scheme.
authorLukasz Wesolowski <wesolwsk@illinois.edu>
Sat, 12 Nov 2011 05:54:29 +0000 (23:54 -0600)
committerLukasz Wesolowski <wesolwsk@illinois.edu>
Sat, 12 Nov 2011 05:54:29 +0000 (23:54 -0600)
src/libs/ck-libs/MeshStreamer/MeshStreamer.h

index d2c2c6159ef588693cc5101e1d7f6c1a6f9b8224..e2ddd32140f960656570a02bc38385ea1e5ed274 100644 (file)
@@ -570,7 +570,7 @@ template <class dtype>
 void MeshStreamer<dtype>::flushDirect(){
 
     if (!isPeriodicFlushEnabled_ || 
-       CkWallTimer() - timeOfLastSend_ >= progressPeriodInMs_) {
+       1000 * (CkWallTimer() - timeOfLastSend_) >= progressPeriodInMs_) {
       flushBuckets(planeBuffers_, numPlanes_);
       flushBuckets(columnBuffers_, numColumns_);
       flushBuckets(personalizedBuffers_, numRows_);