diff --git a/fixbackend/inventory/inventory_service.py b/fixbackend/inventory/inventory_service.py index 4117fc1a..820ca462 100644 --- a/fixbackend/inventory/inventory_service.py +++ b/fixbackend/inventory/inventory_service.py @@ -766,7 +766,7 @@ async def progress( filter_group=filter_group, aggregation=aggregation, ) as response: - entries = [int(r["v"]) async for r in response] + entries = [round(r["v"]) async for r in response] if len(entries) == 0: # timeseries haven't been created yet return not_exist, 0 elif len(entries) == 1: # the timeseries does not exist longer than the current period