From be8e67104e9b9abc3f1533626e949c08117ed776 Mon Sep 17 00:00:00 2001 From: Phillip Jensen Date: Tue, 26 Mar 2024 10:27:06 +0100 Subject: [PATCH] Reduce activity chart to 24 hours --- stats-backend/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats-backend/api/views.py b/stats-backend/api/views.py index c103769..0a889dd 100644 --- a/stats-backend/api/views.py +++ b/stats-backend/api/views.py @@ -170,7 +170,7 @@ async def online_nodes(request): async def activity_graph_provider(request, yagna_id): end = round(time.time()) - start = end - 604800 + start = end - 86400 # 24 hours query = ( f'activity_provider_created{{hostname=~"{yagna_id}", job=~"community.1"}}'