Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kuettai committed Oct 30, 2024
2 parents 38e9930 + 459f3b3 commit 7e05c52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions services/ec2/Ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import boto3
import botocore
import requests
from datetime import date, datetime, timedelta, UTC
from datetime import date, datetime, timedelta

import re
import json
Expand Down Expand Up @@ -407,7 +407,7 @@ def get_next_gen(instance_family):
return new_instance_family

# Define the time period for the this month
end_date = datetime.now(UTC)
end_date = datetime.now()
start_date = end_date - timedelta(days=30)
time_period = {
'Start': start_date.strftime('%Y-%m-%d'),
Expand Down
2 changes: 1 addition & 1 deletion services/ec2/drivers/Ec2EbsVolume.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _checkEBSIops(self):

check_days = 7 # number of days checked
period = 60 * 60 # 1hr interval
end_time = datetime.datetime.now(datetime.UTC)
end_time = datetime.datetime.now()
start_time = end_time - datetime.timedelta(days=check_days)

for metric in metrics:
Expand Down

0 comments on commit 7e05c52

Please sign in to comment.