Ops: fix delete_job_files

Script was broken after 3f0f36ac5a
This commit is contained in:
Christian Beer 2017-04-03 16:07:34 +02:00 committed by GitHub
parent cdbbc17d27
commit b68e0dafaf
1 changed files with 1 additions and 2 deletions

View File

@ -47,8 +47,7 @@ while (1) {
$b = _mysql_fetch_object($result);
if (!$b) continue;
$fname = job_file_name($file->md5);
$path = dir_hier_path($fname, "../../download", $fanout);
$path = dir_hier_path($file->name, "../../download", $fanout);
unlink($path);
echo "deleted $path\n";
BoincBatchFileAssoc::delete_aux("job_file_id=$file->id");