Passed
Push — master ( ce04c3...f35e7d )
by Vitalii
10:02
created
html/ops/batch_accel.php 2 patches
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
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                         break;
67 67
                     }
68 68
                     $age = $now - $r->sent_time;
69
-                    if ($age<$batch->expire_time) {
69
+                    if ($age < $batch->expire_time) {
70 70
                         $make_another_result = false;
71 71
                         break;
72 72
                     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             if ($make_another_result) {
77 77
                 echo "creating another instance for WU $wu->id\n";
78 78
                 $query[] = sprintf(
79
-                    'target_nresults=%d', $wu->target_nresults+1
79
+                    'target_nresults=%d', $wu->target_nresults + 1
80 80
                 );
81 81
                 $query[] = sprintf(
82 82
                     'transition_time=%f', $now
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 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
 
Please login to merge, or discard this patch.