Passed
Pull Request — master (#6687)
by David
16:44 queued 07:01
created
html/ops/batch_accel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 // accelerate batches if at least this frac done
30 30
 // can be set in project.inc
31 31
 //
32
-if (!defined('BATCH_ACCEL_MIN_FRAC_DONE')){
32
+if (!defined('BATCH_ACCEL_MIN_FRAC_DONE')) {
33 33
     define('BATCH_ACCEL_MIN_FRAC_DONE', .85);
34 34
 }
35 35
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                         break;
74 74
                     case RESULT_SERVER_STATE_IN_PROGRESS:
75 75
                         $age = $now - $r->sent_time;
76
-                        if ($age<$batch->expire_time) {
76
+                        if ($age < $batch->expire_time) {
77 77
                             echo "   have recent in-progress result\n";
78 78
                             $make_another_result = false;
79 79
                         }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             if ($make_another_result) {
86 86
                 echo "   creating another instance\n";
87 87
                 $query[] = sprintf(
88
-                    'target_nresults=%d', $wu->target_nresults+1
88
+                    'target_nresults=%d', $wu->target_nresults + 1
89 89
                 );
90 90
                 $query[] = sprintf(
91 91
                     'transition_time=%f', $now
Please login to merge, or discard this patch.