From c669c91fb44ab5787f867a50a95e923c5236a392 Mon Sep 17 00:00:00 2001 From: Gagan Deep Date: Sat, 30 Sep 2023 14:20:15 +0530 Subject: [PATCH] [fix] Removed precision from Round() which is not support on Django 3.2 --- openwisp_radius/integrations/monitoring/apps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openwisp_radius/integrations/monitoring/apps.py b/openwisp_radius/integrations/monitoring/apps.py index 2f4c49dd..0f1ab96f 100644 --- a/openwisp_radius/integrations/monitoring/apps.py +++ b/openwisp_radius/integrations/monitoring/apps.py @@ -78,10 +78,10 @@ def register_dashboard_charts(self): }, 'aggregate': { 'download_traffic': Round( - Cast(Sum('input_octets'), models.FloatField()) / 10**9, 1 + Cast(Sum('input_octets'), models.FloatField()) / 10**9 ), 'upload_traffic': Round( - Cast(Sum('output_octets'), models.FloatField()) / 10**9, 1 + Cast(Sum('output_octets'), models.FloatField()) / 10**9 ), }, },