Skip to content

Commit

Permalink
Change default job age for job size and files graph
Browse files Browse the repository at this point in the history
  • Loading branch information
ganiuszka committed Apr 14, 2024
1 parent eebd6c3 commit a29b23b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Web/Modules/WebConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class WebConfig extends ConfigFileModule
/**
* Default job age on job status graph.
*/
public const DEF_JOB_AGE_ON_JOB_STATUS_GRAPH = 0;
public const DEF_JOB_AGE_ON_JOB_STATUS_GRAPH = 1209600; // 14 days

/**
* Default audit log enabled value.
Expand Down
4 changes: 4 additions & 0 deletions Web/Portlets/ResourceMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

namespace Bacularis\Web\Portlets;

use Bacularis\Web\Modules\WebConfig;

/**
* Resource monitor.
*
Expand All @@ -47,6 +49,8 @@ public function onInit($param)
// set job age for job status summary graph
if (isset($web_config['baculum']['job_age_on_job_status_graph'])) {
$this->job_age_on_job_status_graph = $web_config['baculum']['job_age_on_job_status_graph'];
} else {
$this->job_age_on_job_status_graph = WebConfig::DEF_JOB_AGE_ON_JOB_STATUS_GRAPH;
}
}
}
Expand Down

0 comments on commit a29b23b

Please sign in to comment.