Skip to content

Commit

Permalink
Merge pull request #185 from bitshares/for-core-4.0.x
Browse files Browse the repository at this point in the history
Merge 4.0.x changes to master
  • Loading branch information
abitmore authored Feb 21, 2020
2 parents c851de8 + 463380d commit 3970ca1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/log/file_appender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ namespace fc {
{
}
}
_deletion_task = schedule( [this]() { delete_files(); }, start_time + _interval_seconds,
uint64_t next_file = time_point::now().sec_since_epoch() / _interval_seconds + 1;
_deletion_task = schedule( [this]() { delete_files(); },
fc::time_point_sec( next_file * _interval_seconds),
"delete_files(3)" );
}
};
Expand Down

0 comments on commit 3970ca1

Please sign in to comment.