Skip to content

Commit

Permalink
Merge pull request #19 from lucatacconi/devel
Browse files Browse the repository at this point in the history
Fix stat calc on HFT. Closes #18
  • Loading branch information
lucatacconi authored Oct 25, 2021
2 parents 913b45e + f9014d9 commit bdaa541
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions routes/api/task-stat.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,12 @@ static function (array $file) {

if($high_frequency){

$nincrement++;

do{

if(empty($calc_run_ref)){
$calc_run_ref = $event_interval_from_orig;
$calc_run_ref = $calc_run_ref = $cron->getNextRunDate($event_interval_from_orig, 0, true)->format('Y-m-d H:i');
}else{
$calc_run_ref = $cron->getNextRunDate($calc_run_ref, $nincrement, true)->format('Y-m-d H:i');
$calc_run_ref = $cron->getNextRunDate($calc_run_ref, 1, true)->format('Y-m-d H:i');
}

if($calc_run_ref <= $event_interval_to){
Expand Down

0 comments on commit bdaa541

Please sign in to comment.