Skip to content

Commit 0860c73

Browse files
committed
Don't checkpoint on ts = 0 with a frequency checkpointing set
1 parent 931b624 commit 0860c73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ class core
404404
if(on_last && *on_last && is_last_ts)
405405
return true;
406406

407-
if( frequency && (current_ts % *frequency ==0) )
407+
// don't checkpoint on the first ts if we are doing frequency checkpoints
408+
if( frequency && current_ts !=0 && (current_ts % *frequency ==0) )
408409
return true;
409410

410411
return false;

0 commit comments

Comments
 (0)