Skip to content

Commit

Permalink
fix: increase lookbehind to 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
crebsy committed Jul 18, 2023
1 parent 2593716 commit a7fc3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grafana.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _ds_query(query, ts):
base_url = os.environ["BASE_URL"]

to_millis = int(ts * 1e3)
from_millis = int(to_millis - 1800 * 1e3)
from_millis = int(to_millis - 3600 * 1e3)

url = f'{base_url}/api/ds/query'
headers = {
Expand Down

0 comments on commit a7fc3d1

Please sign in to comment.