Skip to content

Commit

Permalink
[fix] Removed precision from Round() which is not support on Django 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Feb 15, 2024
1 parent 4cac95c commit c669c91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openwisp_radius/integrations/monitoring/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
},
},
Expand Down

0 comments on commit c669c91

Please sign in to comment.