Skip to content

Commit de88750

Browse files
committed
add isCached qualifier for listing
1 parent 1224e24 commit de88750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

disk_management/cache_report.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cat >> $report_file <<EOF
1515
</p>
1616
<p>Oldest 1000 files under /cache/halld</p>
1717
EOF
18-
query="select file.mod_time as mtime, file_name, file.owner, size, full_path from file, directory where file.dir_index = directory.dir_index and full_path like \"/cache/halld/%\" order by mtime limit 1000;"
18+
query="select file.mod_time as mtime, file_name, file.owner, size, full_path from file, directory where file.dir_index = directory.dir_index and full_path like \"/cache/halld/%\" and isCached = 1 order by mtime limit 1000;"
1919
mysql --html -h scidbw -u dummy wdm -e "$query" >> $report_file
2020
cat >> $report_file <<EOF
2121
</body>

0 commit comments

Comments
 (0)