Skip to content
Snippets Groups Projects
Commit ab656a69 authored by Masami  Suzuki's avatar Masami Suzuki Committed by Yas Naoi
Browse files

Issue #3274386 by Masami, yas: Hotfix - Refactor k8s_ENTITY_TYPE_delete

parent c526da61
No related branches found
No related tags found
No related merge requests found
......@@ -3851,7 +3851,7 @@ class K8sService extends CloudServiceBase implements K8sServiceInterface {
->condition('cloud_context', $this->cloudContext);
if (!empty($metrics_duration)) {
$query->condition('created', time() - $metrics_duration * 3600, '<');
$query->condition('created', time() - $metrics_duration * self::SECONDS_OF_ONE_DAY, '<');
}
if (!empty($types)) {
$query->condition('type', $types, 'IN');
......
......@@ -31,6 +31,11 @@ interface K8sServiceInterface {
*/
public const DEFAULT_TIMEZONE = 'UTC';
/**
* Seconds of one day.
*/
public const SECONDS_OF_ONE_DAY = 86400;
/**
* Set the cloud context.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment