@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | } |
137 | 137 | } |
138 | 138 | if ($fp_total) { |
139 | - $batch->fraction_done = $fp_done / $fp_total; |
|
139 | + $batch->fraction_done = $fp_done/$fp_total; |
|
140 | 140 | } |
141 | 141 | if ($completed && $batch->state == BATCH_STATE_IN_PROGRESS) { |
142 | 142 | $batch->state = BATCH_STATE_COMPLETE; |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | // get the total size of output files of a batch |
228 | 228 | // |
229 | 229 | function batch_output_file_size($batchid) { |
230 | - $batch_td_size=0; |
|
230 | + $batch_td_size = 0; |
|
231 | 231 | $wus = BoincWorkunit::enum("batch=$batchid"); |
232 | 232 | $fanout = parse_config(get_config(), "<uldl_dir_fanout>"); |
233 | 233 | $upload_dir = parse_config(get_config(), "<upload_dir>"); |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | } |
258 | 258 | |
259 | 259 | function boinc_get_wu_output_files_url($user, $wu_id) { |
260 | - $auth_str = md5($user->authenticator.$wu_id); |
|
260 | + $auth_str = md5($user->authenticator.$wu_id); |
|
261 | 261 | return "get_output.php?cmd=workunit_files&wu_id=$wu_id&auth_str=$auth_str"; |
262 | 262 | } |
263 | 263 |