Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Feb 12, 2025
1 parent 792a1f5 commit 73ccc95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions www/controllers/Service/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public function cleanUp()

try {
/**
* Clean temp files and directories older than 7 days
* Clean temp files and directories older than 3 days
*/
if (is_dir(DATA_DIR . '/.temp')) {
$files = \Controllers\Common::findRecursive(DATA_DIR . '/.temp');
$dirs = \Controllers\Common::findDirRecursive(DATA_DIR . '/.temp');

if (!empty($files)) {
foreach ($files as $file) {
if (filemtime($file) < strtotime('-7 days')) {
if (filemtime($file) < strtotime('-3 days')) {
if (!unlink($file)) {
throw new Exception('Could not clean temporary file <b>' . $file . '</b>');
}
Expand Down
2 changes: 1 addition & 1 deletion www/views/includes/tables/tasks/list.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
}

if ($item['Status'] == 'scheduled' or $item['Status'] == 'queued') {
echo '<img class="icon-np" src="/assets/icons/pending.svg" title="Task is scheduled" />';
echo '<img class="icon-np" src="/assets/icons/pending.svg" title="Task is pending" />';
}

if ($item['Status'] == 'running') {
Expand Down

0 comments on commit 73ccc95

Please sign in to comment.